I have been using the HTTPClient Library for some time, but recently I am having trouble every time I use it. The Photon would restart the second time a request is made and since the device attempts to make a request once every minute, it goes offline and back online every two minutes. This behaviour disappears when I comment off the line reading
http.get(request, response, headers). Note that my project was working fine until I tried to improve it and started experimenting with arrays. When the problem started appearing, I restored a backup copy of my code that used to work, but it is not working now.
I tried to find an alternative to HTTPClient and I read about something called “rest” but the library does not feature in the Library list in the web IDE. The non web IDE does not work for me since it crashes every time I verify code.