Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 5 months ago.
It`s not waiting for a connecting
I`m having problem trying to make a tcp socket server on my WIFI DIPCORTEX.
It`s not waiting for a connecting , and all I see in the serial monitor is a fast moving .
Wait for new connection... Connection from: Wait for new connection... Connection from:
I`ve tried increasing the value in and tried making it blocking "client.set_blocking(false, 1500); Timeout after (1.5)s" , but it`s scrolling past as fast as it will go.
I`ve tested to see if bind and listen returns a 0 , which it does , I`ve tested that the wifi is connected to the AP.
Can you copy/paste the output from the serial console? Did the board receive proper IP address? How did you tested that is connected to the AP? Does simple hello world work?
posted by Martin Kojtal 15 Jun 2014tcp server demo. IP address: 192.168.0.43
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
Wait for new connection... Connection from:
posted by peter adshead 15 Jun 2014don't see much from the output, can you turn on debugging messages? That could help to narrow down the problem into a specific layer.
posted by Martin Kojtal 16 Jun 2014can you turn on debugging messages?
HOW ?
It`s connected to the AP , and tried to see if any command are reporting an error with this simple test .
int32_t reply = 1; int32_t status = 1; TCPSocketServer server; TCPSocketConnection client;
if ( wifi.is_connected() ) RFID.printf("WiFi connected\r\n"); reply = server.bind(80); if ( reply == 0 ) RFID.printf("Bind ok \r\n"); reply = server.listen(); if ( reply == 0 ) RFID.printf("Listen ok\r\n"); wait(1); status = server.accept(client) ; RFID.printf( "status = %i \r\n" , status );
result ..
WiFi connected Bind ok Listen ok status = -1 Connection from:
so a error with the accept ?
posted by peter adshead 16 Jun 2014has anyone figured out this problem? The device isnt waiting for a client...I'm getting the same results on the serial terminal
posted by A L 14 Dec 2014