Parsing the sensor data received by gateway and storing in DB
-
I have received these lines of data in my serial gateway
0;0;3;0;9;read: 1-1-0 s=2,c=1,t=16,pt=0,l=1:0
1;2;1;0;16;0
0;0;3;0;9;read: 1-1-0 s=0,c=1,t=4,pt=7,l=5:1007
1;0;1;0;4;1007
0;0;3;0;9;read: 1-1-0 s=1,c=1,t=0,pt=7,l=5:31.1
1;1;1;0;0;31.1I would like to ask, how do I get these values into a variable, parse it and then store it into my database?
I have an idea of using the gateway as a Web Client, and run a GET request towards a PHP file on my server. The file will parse all the data being sent and log it in the database, but now I'm stuck at categorizing the values into its respective fields.
Any help is appreciated. Thanks in advance!
-
@Justin-Lim A good starting point is the serial protocol. There you will find all information you need.
-
@tekka Wow cool that's what I've been looking for! Thanks!
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
NODs stop responding, but ping works.
Troubleshooting • about 21 hours ago • Marcin about 21 hours ago -
Arduino nano and Uno in same My sensors network with NRF24L01+
Troubleshooting • 26 Jul 2024, 10:30 • DIY89 27 Aug 2024, 09:59 -
Some sensors permanently fail after one/two years
Troubleshooting • 25 Jul 2024, 17:17 • Kokosnoot 25 Jul 2024, 17:17 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47