I was wondering if there is a feature, like the callback system, which can either:
- export payload to a folder on my pc. That way I can make my Java program look through that folder every few minutes to find new exported files to read.
- Allow my program to access Sigfox and retrieve payload data from the backend every few minutes.
Answer by lbertaux · Jan 31 at 03:24 PM
You can use APIs to pull data from our cloud.
However, IMHO it is much more efficient to push data automatically with callbacks instead than pulling it every few minutes with APIs.
Answer by lbertaux · Feb 02 at 07:41 AM
Since callbacks are meant to pusuh data to a server, you have to use the API.
However keep in mind that if you deploy our appliaction at a large scale, it might be interessting to have the data in your servers (with custom processing and every thing) and the mobile App will request data from your servers.
Answer by alexandreb · Feb 02 at 07:44 AM
@SK2017What would prevent your Java application act as a server and respond to API callback? You also can have a side program to handle the callback and making them available to the rest of your system. This could be a Java program, or some king of NodeJS, or whatever programming language you want.
Answer by SK2017 · Feb 08 at 11:17 PM
I tried and it gives this error:
Answer by lbertaux · Feb 09 at 07:47 AM
The 'localhost' is just an shortcut for a machine to access itself. It it not the name of your machine on the network.
If you want to push a callback to a server/computer, you need to enter its public IP address, or a URL if you have a DNS.
IP addresses are for computers what real world addresses are for houses. If you don't have one or just enter 'My House' when giving your address to someone, the delivery will fail ;)
Answer by SK2017 · Feb 16 at 08:43 PM
I'm still having trouble sending the payload. This time I created a HttpServlet to receive Sigfox payloads and then respond to Sigfox with code 200. The servlet URL is the IP of my local network and the same port 9081 (I removed the "/request"). I've posted a question on Stack with more detail but I was wondering if there is anything else I need to do to receive the payload? Does the servlet need to be a HTTPS instead of HTTP to receive from Sigfox? Thank you.