I am having problems with sending http requests with the photon.
I received a batch of photons and just finished porting my software form the core to the photon. The software periodically collects data from sensors and submits it to the server. It is working properly on the core, however on the photon it only manages to do 2 requests after which a hard fault takes place during TCPClient::connect. Tracing the error lead me to the function ‘socket_connect’, during which the fault happens. I have turned off the interrupts and all other unimportant pieces of code in my software but the problem still persists. Firmware is operating in AUTOMATIC mode.
Any ideas whether I could have programmed something that causes this or might this be some kind of a bug?
What version of system firmware are you using? If you could share a minimum version of your application code that has the problem, that will help the firmware team investigate the issue. Thanks
@mdma, this may be related to the issue I posted regarding name resolution (which I flagged as a possible DNS issue). It works sometimes and sometimes not. When it fails, it does into SOS and resets.
I see. I indeed had problems at first in getting the first and second requests working. However since now the first and second requests are constantly working I can only deduce that something in my code was the cause for the first failures. It is so awkward that it is always the third request which fails.
@Melx, I find that the call will sometimes work for a while and then fail several times in a row (causing resets) and then start working again. Sometimes the first call works, other times not.