Connection Error from requests.post() when used with Hologram SDK


#1

I’m sending log data files to a remote server through the Nova modem using the Python requests.post() method. This works unless I’m also using the Hologram SDK to retrieve the current latitude/longitude information of the Raspberry Pi device (such as with loc_obj = hologram.network.location). The Hologram SDK works, but it seems to interfere with the requests.post(), which then fails to establish a connection and send the log data.

Has anyone seen this and knows how to prevent the interference?

I want to keep using the requests.post() (have tried with problems at the remote server using the CustomCloud .sendMessage() ), but I also need to retrieve the correct current latitude/longitude coordinates (other retrievals of geo coordinates return incorrect values, such as from freegeoip.net).


#2

Does the post need to happen on a specific interval or can you wait for the location function to finish before posting again?