Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread Sylvain Rochet
Hi Freddie, On Thu, May 16, 2019 at 10:09:49PM +0200, Freddie Chopin wrote: > On Thu, 2019-05-16 at 21:28 +0200, Sylvain Rochet wrote: > > Unless you are calling ppp_close() from a module, which I highly > > doubt, > > it is safe because other triggers are only rx packet or timeouts. > >

Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread Freddie Chopin
On Thu, 2019-05-16 at 21:28 +0200, Sylvain Rochet wrote: > Unless you are calling ppp_close() from a module, which I highly > doubt, > it is safe because other triggers are only rx packet or timeouts. Forgive my ignorance, but what is a "module" in the lwIP world? (; Generally

Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread Sylvain Rochet
Hi, On Thu, May 16, 2019 at 07:51:45PM +0200, goldsi...@gmx.de wrote: > Am 16.05.2019 um 18:31 schrieb Freddie Chopin: > >Hello Devanand! > > > >On Thu, 2019-05-16 at 20:41 +0530, Devanand Biradar wrote: > >>I have connected to mosquito cloud using Lwip via MQTT. > >>Using PPPOS with GSM module.

Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread goldsi...@gmx.de
Am 16.05.2019 um 20:56 schrieb Freddie Chopin: On Thu, 2019-05-16 at 19:51 +0200, goldsi...@gmx.de wrote: It's probably not safe as you risk calling back into modules that are not reentrant. I don't know this for sure, just as a saftey measurement... Yes, this is what I was afraid of. And

Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread Freddie Chopin
On Thu, 2019-05-16 at 19:51 +0200, goldsi...@gmx.de wrote: > It's probably not safe as you risk calling back into modules that are > not reentrant. I don't know this for sure, just as a saftey > measurement... Yes, this is what I was afraid of. > Maybe you could use tcpip_trycallback() from that

Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread goldsi...@gmx.de
Am 16.05.2019 um 18:31 schrieb Freddie Chopin: Hello Devanand! On Thu, 2019-05-16 at 20:41 +0530, Devanand Biradar wrote: I have connected to mosquito cloud using Lwip via MQTT. Using PPPOS with GSM module. Yes, I know this can be done, because I already have done it and it works (; But now

Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread Freddie Chopin
Hello Devanand! On Thu, 2019-05-16 at 20:41 +0530, Devanand Biradar wrote: > I have connected to mosquito cloud using Lwip via MQTT. > Using PPPOS with GSM module. Yes, I know this can be done, because I already have done it and it works (; But now I would like to make it more error-proof and

[lwip-users] Multiple instance of lwip on Windows

2019-05-16 Thread Giuseppe Modugno
I have a project that uses lwip/pcapif on Windows and it works well. I wanted to run two instances of the same program with different mac address, ip address and so on. I started patching pcapif_low_level_init() to retrieve the mac address from an externa function (the original code used a

Re: [lwip-users] Netconn API Server Mode Connection Drope Detection

2019-05-16 Thread Mesut Cömert
yep, i can detecting that ERR_CLSD error code. After that i have to go back netconn_accept function. i couldn't this. Also my system has RTOS. It doesn't turns that task. tirmalabenikasibeni , 16 May 2019 Per, 18:07 tarihinde şunu yazdı: > netconn_receive must return ERR_CLSD when connection

Re: [lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread Devanand Biradar
I have connected to mosquito cloud using Lwip via MQTT. Using PPPOS with GSM module. On Thu, 16 May 2019, 19:55 Freddie Chopin, wrote: > Hi! > > I'm working on an open-source demo project in which there is a MQTT > client talking via PPPoS to a GSM modem. The project also has a RTOS, > so I

Re: [lwip-users] Netconn API Server Mode Connection Drope Detection

2019-05-16 Thread tirmalabenikasibeni
netconn_receive must return ERR_CLSD when connection closed. Check your error code in every loop. -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org

[lwip-users] Can you connect a MQTT client directly from a PPPoS status callback?

2019-05-16 Thread Freddie Chopin
Hi! I'm working on an open-source demo project in which there is a MQTT client talking via PPPoS to a GSM modem. The project also has a RTOS, so I have threads and synchronization objects. I'm wondering whether I could connect a MQTT client to a broker directly from a PPPoS status callback? The

Re: [lwip-users] Netconn API Server Mode Connection Drope Detection

2019-05-16 Thread Stephen Cowell
I'm using RAW, not Netconn... I have to poll my PHY for this... about once every 10,000 loops.  Read the manual for your PHY... several different conditions you can detect... you have to access the status register IIRC. -- Stephen Cowell Project Manager/Engineer Plasmability LLC On 5/16/2019

[lwip-users] Netconn API Server Mode Connection Drope Detection

2019-05-16 Thread Mesut Cömert
Hi, guys. I have using Netconn API on my system. I want to work as server mode. I downloaded and examined netconn server examples and I set up my system. I connect to my device with Hercules TCP Client section. First section is that i connect to my device, send to message and receive message then