Comments (4)
Hi @david-cermak,
We prefer plain C API with callbacks or events(whatever is better for you)
from esp-protocols.
Do you have any proposal about the non-blocking API? For example in C++ we could simply write:
std::future<bool> NetModule::async_sync()
{
return std::async(&NetModule::sync, this);
}
Would you prefer C++ or plain C API? How should we post the results? callbacks, events, std:future
, lambda?
from esp-protocols.
I've updated the default pppos example to demonstrate an async command style that are pure C and use one common callback.
PTAL at david-cermak@343c2cb
I don't think we should include this is as our official example, though.
from esp-protocols.
Closing as the command timeouts have been made configurable and asynchronicity could be achieved by user tasks.
from esp-protocols.
Related Issues (20)
- Broken link (IDFGH-11903) HOT 1
- How should modem disconnects/reconnects be handled in unstable connections? (IDFGH-11995) HOT 7
- Integrate UART_WAKEUP as part of the esp modem (IDFGH-12062) HOT 7
- Compatibility of Simple CMUX Client Library with CAVLI C16QS Modem (IDFGH-12078) HOT 19
- IPV6 for PDP Context (IDFGH-12084) HOT 2
- FTP client to send and receive files (PACMAN-797) (IDFGH-12110) HOT 3
- [BUG] Websocket Target when uri "ws://echo.websocket.org" (IDFGH-12192) HOT 2
- When using esp_modem components, cdc_acm: Incorrect number of bytes transferred error occasionally occurs after networking to the Internet (IDFGH-12227) HOT 1
- [BUG] mDNS stops working with heavy UDP load (IDFGH-12307) HOT 2
- mDNS results in esp_netif_lwip log spam (IDFGH-12320) HOT 1
- Freezing of the ESP, triggering the WDT! (ESP-MODEM) (IDFGH-12332) HOT 3
- Response Issue in CMUX Mode (IDFGH-12431) HOT 15
- little help in getting esp_modem and LiliGo-TSIM7080-S3 to work (IDFGH-12454) HOT 3
- esp-modem next step : ppp auth ? (IDFGH-12496) HOT 5
- esp-modem: AT command response truncated sometimes when in CMUX mode (IDFGH-12526) HOT 3
- mdns: ethernet link flap doesn't restart mdns if DHCP in use. (IDFGH-12563) HOT 2
- esp-netif_lwip-ppp: Connection lost, Modem Disconnect from PPP Server (IDFGH-12618) HOT 5
- Choosing The Right Mode For SIMCOM or Any Modem... (AT or DialUP) (IDFGH-12638) HOT 10
- problems with modem_tcp_client and Telit LE910Cx modem (IDFGH-12643) HOT 1
- esp_mqtt_cxx not set last will (IDFGH-12648)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-protocols.