Tool/software: TI C/C++ Compiler
Hello
I’m using the lwip example named “enet_uip” (and "enet_lwip" with the same web page as enet_uip) for the Concerto device, that uses a simple example of a web page to send messages to the ARM M3 in order to switch on/off a LED and also receives messages about the state of the LED. I've experienced the same problem in further, more complex, web developments.
The web page works fine in my iMac when I use, for example, Crome, and also in Windows based computers. Nevertheless, it does not work fine when I use Safari in the iMac neither in any other Apple device (iPhone or iPad).
I have done some research and turns out that the problem is, apparently, in the outgoing messages from the web page to the ARM M3 using “http.send(null)” where “http = new XMLHttpRequest();”.
The JavaScript code works fine within the web page itself and the buttons do their work within the web page but, when it comes to send a message to the ARM, it never makes it to the Concerto (using Safari in any Apple device).
The Web Inspector integrated in Safari gives the following warning: "Failed to load resource: The network connection was lost."
I have looked into the problem and found this: “Chrome & Firefox just display whatever content was received & don't worry about the mismatch in content length. Safari, starting with Safari 7.0 on Mavericks' 10.9 is stricter about the response & treats the mismatch as a "Failure to load resource" error”.
https://apple.stackexchange.com/questions/106550/safari-7-0-cannot-load-localhost
Since I'm not using "Webrick" like in this link, please have any suggestion to work this out, some workaround?
Should I change any uIP - lwIP option?
Thank you.
Dionisio