When setting up my second Yun+TX shield, it had the same one post per boot problem! And so did my first one, after I had finalized the sketch: setting the node, adding notes, etc. As I played around them and tshark, it seemed that almost no matter what combination of single or double quotes, json, fulljson, or data tag I used, one post worked and none after that. Tshark showed that they weren’t making it to the server, so it wasn’t the server rejecting them. The serial monitor showed identical strings being created, so why weren’t the second and later strings getting to the server?

I started to suspect the “while” statements after the curl shell command, and I realized that the working sketches in this thread don’t use the console; while the first one I posted and the ones I was using for installation did - the original sketch I copied has it, and I added it back for installation so I could get serial monitor type output over ssh. But that must either hang or interact with the while, like if the console has started, the while waits for input?

Anyway, removing the console statements is what solves the one post per boot problem. In testing, commenting console.begin() in and out, the Bridge/communication with the Linux side seems to hang whether or not console.write() is used.

1 Like