I am trying to connect Wisgate edge 2 using Generic MQTT with my local MQTT server but i cannot subscribe or get data in application topic ? do I need to do anything else?
However, i can get the information of $SYS/# topic only.
What is need here? or I missed some configuration
Hi Kabin,
The WisGate Edge 2 has built-in MQTT server so you only need to subscribe to the defined topics so you can get the data. This assumes that you are using the built-in LNS.
Here’s a complete guide that you can follow - https://learn.rakwireless.com/hc/en-us/articles/26688300221079-How-To-Use-the-MQTT-Broker-Like-a-Pro-Examples
following the same process but when i subscriber application/# nothing is available in my mqtt server.
in the trace i get this value only
[{“fPort”:-255,“logObject”:{“payload”:{},“type”:“Uplink”},“payload”:“”,“timestamp”:1735836002,“type”:“UPLINK”,“renderKey”:“17358360021”}]
I am using following sketch Heltec_ESP32/examples/LoRaWAN/LoRaWan/LoRaWan.ino at master · HelTecAutomation/Heltec_ESP32 · GitHub
Can you check what is recorded in packet logger/capture of your gateway? The port on the code should be 2 but in the logs it shows -255. It seems to be a wrong/corrupted lora uplink.
Thanks Carlrowan. I made one mistake in payload type it should be None. Now I am getting this data
[{“fPort”:2,“logObject”:{“payload”:{“adr”:true,“applicationID”:“1”,“applicationName”:“testapplication”,“data”:“00010203”,“data_encode”:“hexstring”,“devEUI”:“81e350cc000024c2”,“deviceName”:“dev_81e350cc000024c2”,“fCnt”:9,“fPort”:2,“rxInfo”:[{“gatewayID”:“xxxxxx”,“loRaSNR”:4,“location”:{“altitude”:0,“latitude”:0,“longitude”:0},“rssi”:-61}],“timestamp”:1735869570,“txInfo”:{“dr”:5,“frequency”:433575000}},“type”:“Uplink”},“payload”:“00”,“timestamp”:1735869571,“type”:“UPLINK”,“renderKey”:“17358695711”}]
However, I am able to get that information in my local mqtt “application/#” topic. Do I need to do anything more?