My goal is to establish a TCP socket connection with an MKR GSM 1400 board to that I can send an updated firmware image and perform OTA updates.
I’m running a rudimentary server on the MKR board and can send data to the board via an inbound webhook and curl. This seems to work well. However, to implement a state machine I’ll need to know if my previous task was successfully completed so I need to receive data from the MKR board, not just send data to it. Seems like I could create a webhook and implement an http server to catch data sent from the MKR board but this solution seems kludgy.
A simpler solution would be to create a direct TCP socket connection between my localhost and the MKR board. However, I don’t necessarily know the IP address of the MKR board, so I’m wondering if spacebridge will help me here? Can I use spacebridge to create a tunnel to the MKR board so that I can open a TCP socket connection between my localhost and the MKR board or does spacebridge require an SSH server running on the MKR board - an unrealistic expectation?
If spacebridge isn’t the answer, how would you suggest I configure a system to send data via TCP sockets to an MKR board and receive acknowledgments in a relatively straightforward manner?
Thanks in advance.