fixed parsing of address to handle [<addr>]

This commit is contained in:
Joakim Eriksson 2011-03-22 10:42:38 +01:00
parent fe2c972ef3
commit 90ae09c7e5
2 changed files with 6 additions and 4 deletions

View file

@ -46,13 +46,13 @@
#include <stdio.h>
/* The address of the server to register the services for this node */
#define SERVER "aaaa::1"
#define SERVER "[aaaa::1]"
/* This command registers two services (/0 and /1) to turn the leds on or off */
#define REGISTER_COMMAND "/r?p=0&d=Turn%20off%20leds&p=1&d=Turn%20on%20leds"
/* The address of the other node to control */
#define OTHER_NODE "aaaa::212:7403:3:303"
#define OTHER_NODE "[aaaa::1]"
/* The commands to send to the other node */
#define SET_LEDS_ON "/1"