Skip to content
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

Open
faithlm opened this issue Apr 8, 2019 · 2 comments
Open

9160 http nonblocking mode #2

faithlm opened this issue Apr 8, 2019 · 2 comments

Comments

@faithlm
Copy link

faithlm commented Apr 8, 2019

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 .

@Rallare
Copy link
Owner

Rallare commented Apr 24, 2019

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().

@rkertesz
Copy link

@Rallare Can you more explicitly show me how to use your example with the "official" code?

Rallare pushed a commit that referenced this issue Aug 10, 2020
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>
Rallare pushed a commit that referenced this issue Aug 10, 2020
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants