Report
5 years, 12 months ago.

mbed rtos and mbed WiflyInterface dont work together . I am polling a couple of sensors

Interfaced with mbed boards and sending it out to a single application . I want to create a Multithreaded server by creating another server thread that sends the data to another application and the program is stuck on socket.bind() when I add the rtos library and more specifically wify->reboot in the library

Code Sample

int main (){

wifly.init("192.168.1.105","255.255.255.0","192.168.1.1");

use Static wifly.init();

while (!wifly.connect()); join the network

printf("IP Address is %s\n\r", wifly.getIPAddress());

TCPSocketServer server;

server.set_blocking(false, 1500);

server.bind(ECHO_SERVER_PORT); stuck here if included rtos header file

server.listen();

printf("\nWait for new connection...\n"); TCPSocketConnection client; server.accept(client); client.set_blocking(false,3000);

process and receive data }

Comment on this question
Be the first to answer this question.

To post an answer, please log in.