[Solved] Device connected, but ‘IBMIoT: Error: Connection refused: Not authorized’ message keeps popping up

It looks like the cause of this could be the mix up of gateways and devices as per my previous comment. From the logs it looks like you have changed the types of the device IDs between gateway and device, and in some cases a device with id b827eb0a0ee8 has connected as a gateway (shown … Read more