(DIR) Return Create A Forum - Home --------------------------------------------------------- mc-Things (HTM) https://mcthings.createaforum.com --------------------------------------------------------- ***************************************************** (DIR) Return to: mc-Platform General ***************************************************** #Post#: 1387-------------------------------------------------- Beacon Question By: kbrooking Date: November 28, 2016, 7:55 pm --------------------------------------------------------- As per the Beaconing white paper, when sending beacons over MQTT, the topic defaults to “mcThings/beacon/{GatewayUID}/{DeviceUID}”. Is this correct? We do not need to set the topic as we do when we use Lplan.Publish? If so, could I then subscribe to “mcThings/beacon” and get beacons from all GW and modules? #Post#: 1388-------------------------------------------------- Re: Beacon Question By: mc-John Date: November 28, 2016, 9:31 pm --------------------------------------------------------- The topic is programmed in the gateway itself and described in page 7 of the white papers and is correct. See also the example on page 8. You can use wildcards to subscribe to all gateways and devices. Google "MQTT subscribe wildcards" and you will find a lot of examples. #Post#: 1431-------------------------------------------------- Re: Beacon Question By: Nick_W Date: December 2, 2016, 9:55 pm --------------------------------------------------------- Checkout my beacon_decode.py program for an example of one way of reading/decoding beacons via mqtt or UDP socket. This decodes my beacon data format, but you can use any format you like, it's just 4 bytes. (HTM) https://github.com/NickWaterton/beacon_decode (HTM) https://github.com/NickWaterton/beacon_decode *****************************************************