They all work fine individually and the library was easy to use. However, running more than one at the same time is turning out to be problematical. I do not know whether I am using the library incorrectly or whether there is an issue either in the library or gateway. For example. If I add a relay board I can happily turn it on or off using the moz-iot interface and I can turn it on/off locally using a touchscreen interface and the associated property is updated correctly in the interface. Once I add a PIR sensor or anything else I cannot control it from the moz-iot interface.
Running gateway in debug mode the gateway output is:
Unexpected end of JSON input often means there is none. However, I don't know whether there is malformed JSON on the adapter. It would be useful if what was there was logged.
I'd appreciate a pointer on where to go. If you need anything else please let me know. Thanks, Ian.
I have a a set of ESP32-based examples running on our oddWires boards here:
https://github.com/iot-bus/iot-bus-mozilla-iot-examples
They all work fine individually and the library was easy to use. However, running more than one at the same time is turning out to be problematical. I do not know whether I am using the library incorrectly or whether there is an issue either in the library or gateway. For example. If I add a relay board I can happily turn it on or off using the moz-iot interface and I can turn it on/off locally using a touchscreen interface and the associated property is updated correctly in the interface. Once I add a PIR sensor or anything else I cannot control it from the moz-iot interface.
Running gateway in debug mode the gateway output is:
Unexpected end of JSON input often means there is none. However, I don't know whether there is malformed JSON on the adapter. It would be useful if what was there was logged.
I'd appreciate a pointer on where to go. If you need anything else please let me know. Thanks, Ian.
Json below:
Response from
curl -v -H "Accept: application/json" https://localhost:4443/debug/devices/ -k | python -m json.tool
:Each has a unique MAC address and IP address:
The output performing a direct GET on the IP addresses is as below: