RSSI Parameter read by AR25 Reader

Home - RSSI Parameter read by AR25 Reader

Adi Sunardy asked 4 months ago

Hi,
I’ve managed to push the data from AR25 Reader into Mesosfer. I’ve created some column in my bucket as below:

  • uuid –> string
  • major –> string
  • minor –> string
  • rssi –> string
  • IsEnterState –> boolean

all of the data has been appeared in my bucket except the rssi column. It said (undefined). Last time i’ve discussed with Cubeacon Team, they mentioned that the reader able to read the rssi level from the transmitter (CMIIW), so i’ve assumed there will be a field named rssi in the data sent to mesosfer.
Please somebody confirm it?
 
Thanks,
 
Adi

2 Answers
Badrullami Staff answered 4 months ago

Hi,
If you wan’t to extract rssi data, please use another broker server and change your beacon distance tobe 0. Then you can log payload data using sample code below :

var mqtt = require('mqtt')
var client  = mqtt.connect('mqtt://test.mosquitto.org')

client
.on('connect', function () {
 client.subscribe('channel1')
})

client.on('message', function (topic, message) {
console.log(message.toString())
})


Plese refer to this link.
Hope it helps.
Rgds,
Mohammad Badrullami

Adi Sunardy replied 4 months ago

Thanks Pak Badrullami,

It’s mean i have to configure a mqtt client (consumer) on my site to read the payload data from mosquiito as the mqtt broker?

Adi Sunardy answered 3 months ago

Hi,
I have tried to use another broker (test.mosquitto.org based on your link) even built my own MQTT Broker on Centos, but no luck to sent the payload from AR25 to the broker. It’s not even connected to the broker (based on LED).
The device got IP address (based on ARP in my LAN Router), and reachable from MQTT Broker (no firewall installed, port 1883 is open). I’ve tried a simple publish message from MQTT client on my MAC over the network to the broker and it’s work. So, i’ve managed to exclude network problem related to this issue.  
Any idea, how to configure AR25 to publish its payload to other MQTT Server? Or maybe Mesosfer could be updated to read rssi data? Please help.
 
Thanks, 
Adi

Your Answer