the date is 2026-05-09T07:39:20-00:00
the transdate is 2026-05-09,00:39:20
Connected successfully
in if datapost = ..
{ "boat_id": 26, "gps": { "lat": 0, "lng": 0 }, "devices": [ { "device_id": 178, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 179, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 181, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": 0 },{ "device_id": 522, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 523, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 520, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 521, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 180, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": 0 }] }
IN AMAZON
sql = INSERT INTO `boatauto_test`.`NewDevices` (
`boatid` ,
`macid` ,
`deviceid1` ,
`deviceid2` ,
`deviceid3` ,
`deviceid4` ,
`deviceid5` ,
`deviceid6` ,
`deviceid7` ,
`deviceid8` ,
`deviceid9` ,
`value1` ,
`value2` ,
`value3` ,
`volts` ,
`button` ,
`pump1` ,
`pump2` ,
`pump3` ,
`ipaddress` ,
`signalst` ,
`baro` ,
`freq` ,
`rebootfreq` ,
`env` ,
`datatopost` ,
`server_outputA` ,
`server_outputW`
)
VALUES (
CONVERT(26, UNSIGNED) , , CONVERT(178, UNSIGNED), CONVERT(179, UNSIGNED), CONVERT(180, UNSIGNED), 181, 522, 523, 520, 521, 0, 99999, 99999, 0, 0, 0, 0, 0, 0,
0, 0, 99999, 0, 0 , 'A', '{ "boat_id": 26, "gps": { "lat": 0, "lng": 0 }, "devices": [ { "device_id": 178, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 179, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 181, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": 0 },{ "device_id": 522, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 523, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 520, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 521, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 180, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": 0 }] }', '{"success":true,"errors":[],"token":"fb129e318a"}', ' '
)Error: INSERT INTO `boatauto_test`.`NewDevices` (
`boatid` ,
`macid` ,
`deviceid1` ,
`deviceid2` ,
`deviceid3` ,
`deviceid4` ,
`deviceid5` ,
`deviceid6` ,
`deviceid7` ,
`deviceid8` ,
`deviceid9` ,
`value1` ,
`value2` ,
`value3` ,
`volts` ,
`button` ,
`pump1` ,
`pump2` ,
`pump3` ,
`ipaddress` ,
`signalst` ,
`baro` ,
`freq` ,
`rebootfreq` ,
`env` ,
`datatopost` ,
`server_outputA` ,
`server_outputW`
)
VALUES (
CONVERT(26, UNSIGNED) , , CONVERT(178, UNSIGNED), CONVERT(179, UNSIGNED), CONVERT(180, UNSIGNED), 181, 522, 523, 520, 521, 0, 99999, 99999, 0, 0, 0, 0, 0, 0,
0, 0, 99999, 0, 0 , 'A', '{ "boat_id": 26, "gps": { "lat": 0, "lng": 0 }, "devices": [ { "device_id": 178, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 179, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 181, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": 0 },{ "device_id": 522, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 523, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 520, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 521, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": "n/a" },{ "device_id": 180, "event_date": "2026-05-09T07:39:20-00:00" , "event_type": "ping", "value": 0 }] }', '{"success":true,"errors":[],"token":"fb129e318a"}', ' '
)
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' CONVERT(178, UNSIGNED), CONVERT(179, UNSIGNED), CONVERT(180, UNSIGNED), 181,...' at line 32