-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9160 http nonblocking mode #2
Comments
The timeout / blocking mode on socket calls depend on the function bsd_os.c::bsd_os_timedwait(), and it has recently been properly implemented (see https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/lib/bsdlib/bsd_os.c#L172). I'll keep my homebrew functions for backwards compatibility, but you should be able to run them non-blocking with a timeout now (I haven't tested yet myself), or setup your application using poll(). |
@Rallare Can you more explicitly show me how to use your example with the "official" code? |
The bluetooth header does not compile without bluetooth enabled 1. needed to ifdef ble_utils for cmake 2. had to #if instead of runtime if as the function will not be defined 3. had to #if callback functions as #2 des disable usage Signed-off-by: Marek Porwisz <marek.porwisz@nordicsemi.no>
…ures Customer engineering, new features added to SLM TCP Proxy Feature #1 is handled by new unsolicited notification of "#XTCPDATA", then client could fetch all data with "AT#XTCPRECV" command. If received data cannot be reserved inside SLM, an OVERRUN unsolicited notification is sent then data is dropped. Feature #2 is handled by returning socket handles. Also added an unsolicited notification when TCP Server close client connection due to connection time-out. Signed-off-by: Jun Qing Zou <jun.qing.zou@nordicsemi.no>
Hi,
I have seen your htttp samples, as I see it is working with blocking mode,and I try to find the nrf91_sockets.c to find a non blockling mode api but failed.
Could you please give some advise for non blocking http api ?
Thank you .
The text was updated successfully, but these errors were encountered: