[Kudly] Connected teddy bear


Today and yesturday, I worked on http post with our wifi module. Now Kudly is able to download or to upload a file from server. It’s also able to read instruction on a xml web page to control LEDs for example.

We spend some time debug streams reading with the wifi module. In fact when data (one or more) are ready a polling command returns 1, when stream is closed (reading is finished) it returns “command failed” and when the buffer is empty but there is other data that is coming it return 0.  So we looped until the polling return a fail or 1 but it blocked half time in this loop because, according to us, we asked too fast the wifi module so it couldn’t close the stream when there is no following data. To fix it, I add a timeout on this loop.


Commentaires fermés.