PyGate and Ubidots
sashok0127 last edited by
I want to collect and send Lora-nodes data to Ubidots server directly. I have bought Pygate board but I didn't find any ways to realize it in the documentation. There present example only to send data to TTN. Moreover, APIs is really poor, just functions for init, run and stop the event handler.
Can I get the raw nodes data?
Or maybe in some way I can change server address and request string?
Arnold Quinsey last edited by
@sashok0127 TTN has a direct integration with Ubidots. If i were you i would setup your gateway to forward data to TTN then build your Ubidots reporting using the existing integration. More info here: https://help.ubidots.com/en/articles/2362758-integrate-your-ttn-data-with-ubidots-simple-setup
Currently, the Pygate firmware is still being developed. Im not too familiar with Ubidots, but if it works the same as TTN, you should be able to enter your own router address to connect the gateway.
Changing the request data would require some source code manipulation. I can point you towards the file where the data is assembled in a JSON packet: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/pygate/lora_pkt_fwd/lora_pkt_fwd.c#L1491
The relevant portion is below the line I selected