Sending JSON arrays over Arduino Ethernet – only works for 0s

details

Project Description
This project tries to feed an Arduino values to control motors and send the values via JSON arrays. The Arduino (with an Ethernet Shield) acts as a client, and my laptop acts as a server. JSON array id parsed with simple values (X:400, Y:200, Z:0, etc), and send it over the connection. However, for any set of values other than (X:0, Y:0, Z:0, etc), the connection lags. The connection doesn’t STOP (I have debug statements to catch that), it simply hangs there. Nothing happens after that point – the server and the client just kind of wait forever.
ending JSON arrays over Arduino Ethernet – only works for 0s

  1. Data: 2015.04

  2. Source: http://www.scriptscoop.com/t/0ccbf24b117b/sending-json-arrays-over-arduino-ethernet-only-works-for-0s.html

  3. Author: Aaron Tp@ http://www.scriptscoop.com/

  4. Tag: 2015.04, W5100, Ethernet Shield, JSON, QuadMotorShields, HTTPClient, Tutorials

code capture

Project Description
This project tries to feed an Arduino values to control motors and send the values via JSON arrays. The Arduino (with an Ethernet Shield) acts as a client, and my laptop acts as a server. JSON array id parsed with simple values (X:400, Y:200, Z:0, etc), and send it over the connection. However, for any set of values other than (X:0, Y:0, Z:0, etc), the connection lags. The connection doesn’t STOP (I have debug statements to catch that), it simply hangs there. Nothing happens after that point – the server and the client just kind of wait forever.
ending JSON arrays over Arduino Ethernet – only works for 0s

  1. Data: 2015.04

  2. Source: http://www.scriptscoop.com/t/0ccbf24b117b/sending-json-arrays-over-arduino-ethernet-only-works-for-0s.html

  3. Author: Aaron Tp@ http://www.scriptscoop.com/

  4. Tag: 2015.04, W5100, Ethernet Shield, JSON, QuadMotorShields, HTTPClient, Tutorials

code capture

COMMENTS

Please Login to comment
  Subscribe  
Notify of