Set node id. How?
-
Hi!
This code:$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) $result = @socket_connect($sock, '172.16.35.66', '5003'); $data_read = socket_read($sock,40); echo $data_read; socket_close($sock);
returns:
255;255;3;0;3;
but, if i try to set node id using code:$write = socket_write($sock, '32;0;3;0;4;');
code return:
0;0;3;0;14;Gateway startup complete.how to set node id?
-
Did you check the API ?
https://www.mysensors.org/download/serial_api_15
-
Did you send a newline at the end?
1 out of 3
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58 -
DHT22 wrong sensor type in Home Assistant
Troubleshooting • 13 days ago • Commodoreuno 7 days ago -
Ghost Child
Troubleshooting • 15 Mar 2025, 07:44 • FcNanoLed 18 Mar 2025, 18:36 -
NODs stop responding, but ping works.
Troubleshooting • 8 Mar 2025, 19:47 • Marcin 8 Mar 2025, 19:47 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22