loboris/ESP32-PPPOS-EXAMPLE

Using libGSM for a websocket connection

Djaison opened this issue · 0 comments

Hello! I'm developing a program for ESP32 and SIM800. My task is to create a communication channel over the websocket between ESP32 (client) and a remote server via GSM. I have a working websocket library, but it needs a TCP client class. The built-in TCP stack of the SIM800 does not suit me, so I decided to connect the ESP32 to the SIM800 via PPPoS. Can I use your libGSM class as a TCP client or it does not have this functionality. I'm a beginner in C ++ (6months +) and am trying to deal with libGSM. As it seems to me using for example such functions as:

ppp_output_callback (ppp_pcb * pcb, u8_t * data, u32_t len, void * ctx);

pppos_input_tcpip (ppp, (u8_t *) data, len)

this is possible. If this is possible, could you give at least general recommendations or any other information. Thank you in advance!