get the device EUI value from Node-Red?
- This topic has 4 replies, 2 voices, and was last updated 7 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You cannot reply to this topic.
Home › Forums › Conduit: AEP Model › get the device EUI value from Node-Red?
Hello.
You are going to configure the UI using Apps Node-Red of the Conduit product.
Using the Dashboard, you can access the device and press the button to print out various data from the device.
Is there a way to get the connected device EUI value?
The API is available to node-red to access any information you may see in the GUI.
Make an HTTP request to 127.0.0.1/api/lora/devices for a list of end-devices.
https://drive.google.com/file/d/1tuLkmwMmKXvNYTyLuIbi4KY0iF-jQqLV/view
Thank you.
{ “code”: 200, “result”: [ { “class”: “C”, “created_at”: “2019-09-30T17:27:41Z”, “deveui”: “00-80-00-00-04-01-76-32”, “device_profile_id”: 6, “device_profile_updated_at”: “2019-09-30T17:27:41Z”, “firmware_version”: “”, “hardware_version”: “”, “last_seen”: “2019-10-29T10:51:23Z”, “name”: “”, “network_profile_id”: 3, “network_profile_updated_at”: “2019-10-10T16:58:54Z”, “product_id”: “”, “rejoin_count”: 0, “serial_number”: “”, “tags”: “” } ], “status”: “success” }
The output is as shown above.
msg.payload = msg.payload.code;
The value of the code is output as 200.
msg.payload = msg.payload.result.class
However, when approaching with class or deveui, it is output as undefined.
Please help me.
msg.payload.result is an array.
I solved it thanks