Hello, i use ruuvitag and ruuvi gateway for a project. I have build my own HTTP server. I need to assign to each gateway a custom number that can be add in each gateway broadcast, to link the gateway to an account on my database. it is possible ?
Hello, it’s not possible to add custom headers to HTTP message as of right now.
I would suggest linking the Gateways by their MAC addresses which is a part of their data payload
You can send a custom user ID from the Ruuvi gateway to your custom HTTP server by modifying the broadcast message sent by the gateway. First, you need to figure out how to customize the broadcast message on the Ruuvi gateway to include the custom number. Then, on your HTTP server, you’ll need to set up a way to receive and process this custom number when it arrives. This could involve parsing the incoming data and extracting the custom ID. Once you have the custom ID on your server, you can use it to link the gateway to the respective account in your database. So yeah, it’s possible!