im relative new to arduino / wishield. I read everything in the forum but nothing could help me.
I have the SocketApp example and i want to parse the input in the main loop function.
Here is my code in the socketapp.c
- Code: Select all
extern char*message;
static int handle_connection(struct socket_app_state *s)
{
PSOCK_BEGIN(&s->p);
PSOCK_READTO(&s->p, '\n');
PSOCK_SEND_STR(&s->p, s->inputbuffer);
// put the inputbuffer in 'message'
message = s->inputbuffer;
memset(s->inputbuffer, 0x00, sizeof(s->inputbuffer));
PSOCK_SEND_STR(&s->p, "\n");
PSOCK_END(&s->p);
}
SocketApp.pde
- Code: Select all
char*message;
void setup()
{
Serial.begin(9600);
WiFi.init();
}
void loop()
{
WiFi.run();
Serial.println(message);
}
But the Serial output prints nothing.
I tried memcpy, strcpy but nothing works

Someone has a clue what im doing wrong?
Thanks for the replies !