Hi there,
this is addressed to the publisher of measurement data we describe below.
Findings
We are currently receiving measurement data on our “testdrive” channel, which is looking like
-
Topic
hiveeyes/testdrive/sandsjo/data.json
-
Payload
{"weight":33.33,"temperature1":42.42,"humidity1":84.84,"battery_level":50}
Effect
This is currently triggering an error condition which also gets published to the MQTT bus:
hiveeyes/testdrive/sandsjo/error.json {
"timestamp": "2018-10-13T18:54:11+00:00",
"message": "'NoneType' object has no attribute 'startswith'",
"type": "<type 'exceptions.AttributeError'>",
"description": "Error processing MQTT message \"{\"weight\":33.33,\"temperature1\":42.42,\"humidity1\":84.84,\"battery_level\":50}\" from topic \"hiveeyes/testdrive/sandsjo/data.json\"."
}
Reason
The channel address encoded into the MQTT Topic is missing the last segment, which encodes the "node"
part of the address. The address is made of four parts "realm / network / gateway / node"
, see also Hiveeyes data acquisition » Addressing.
Solution
You should just add another segment to the channel address. An example MQTT topic which should work could be
hiveeyes/testdrive/sandsjo/node-01/data.json
Thanks in advance for addressing this issue!
With kind regards,
Andreas.