espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
453 stars 152 forks source link

Rainmaker when WiFi is not available (MEGH-1719) #43

Open wmantillar opened 3 years ago

wmantillar commented 3 years ago

Hi Team;

I'm new with esp32 but really exited about all possibilities it offers fot IoT Devs, I am using rainmaker for some developments and works great, nevertheless I have an application for a device that need to work in the field where not WiFi is available, so I wonder if there a way to use cellular connection instead (i.e. using # PPP over Serial (PPPoS) client example thought SIM800L or similar), can you give your thoughts about this or any ideas?

shahpiyushv commented 3 years ago

@wmantillar , sorry for the late reply. Have you checked this esp-idf example? If it suits your requirement, it may be possible to integrate it with RainMaker. Ofcourse, there could be some challenges, but worth checking out.

wmantillar commented 3 years ago

@shahpiyushv thank you for your answer, I saw that example, actually my question was aimed at finding out whether or not I have a chance of succeeding trying to integrate that example into Rain Maker or if there is some structural constraint in the Rainmaker stack that will not allow it to do so. Would you encourage me to explore it?

shahpiyushv commented 3 years ago

@wmantillar , sorry I missed out on replying here. RainMaker primarily needs some Internet connection to work. The esp-idf pppos client example I mentioned above helps create a network interface and so the higher layer application protocols should work seamlessly.

The other important aspect i.e. user node sharing can also be supported, but would require some efforts in the phone apps as well as the firmware. There are no technical/structural constraints for this, but just some additional work. You may also check out my comment here for some additional info in this context.

Marcarleto commented 1 year ago

My issue is very similar to wmantillar: I'm developing a project that the device needs to work with or without wi-fi connection. While the code is running and the connection is lost the program still works, but if I start up without the wi-fi I get stuck in the event WIFI_EVENT_STA_DISCONNECTED and printing the message "Disconnected. Connecting to the AP again..." so I can't run my code manually or offline. Can you help me on this?

shahpiyushv commented 1 year ago

@Marcarleto , is it indeed same as the original issue, which requires internet connectivity even when the same is not available? What exactly are you trying to run, which is not working?

Marcarleto commented 1 year ago

@shahpiyushv no, it's exactly the opposite of that: I want internet connectivity only when the same is available, if not I just keep running the program offline (manual control), got it? The rainmaker it's not the essential part of the project but the manual control is.