最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

thingsboard - How to forward messages from a custom LoRa Network? - Stack Overflow

programmeradmin0浏览0评论

I'm just starting with ThingsBoard and I fail to understand how to configure the platform for my scenario.

Currently, I have a custom LoRa network with three Arduino Nano. I use one of them as a receiver to collect and transmit data from the other ones. The transmission is done though a serial connection.

So on my PC I have a program to collect and parse the data to JSON. There is an id field to identify each node.

I am able to publish the data from my PC to ThingsBoard, but only with one device. So even if the id change, the data is still interpreted as coming from one device.

{"id": 1, "temperature": 25, "humidity": 61}

{"id": 2, "temperature": 26, "humidity": 71}

Starting from there, I don't really know how to split the data based on the id in the JSON.

Is there a way to automatically map new devices based on the id (especially if I add some sender to the LoRa Network) ?

Or should I manually add every device to ThingsBoard and do the routing from the PC ?

I have seen some information about the thingsboard-gateway and rule chains, but I didn't understand how to suit my needs. So I'm still going through the docs.

发布评论

评论列表(0)

  1. 暂无评论