Make the Protosockets examples possible to compile.
This commit is contained in:
parent
97037763ad
commit
4c4c468907
2 changed files with 8 additions and 8 deletions
|
@ -1,10 +1,11 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include "contiki-net.h"
|
||||
|
||||
static struct psock ps;
|
||||
static char buffer[100];
|
||||
static uint8_t buffer[100];
|
||||
|
||||
PROCESS(example_psock_client_process, "Example protosocket client");
|
||||
AUTOSTART_PROCESSES(&example_psock_client_process);
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static int
|
||||
|
@ -28,12 +29,10 @@ PROCESS_THREAD(example_psock_client_process, ev, data)
|
|||
{
|
||||
uip_ipaddr_t addr;
|
||||
|
||||
printf("%d\n", TEST);
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
uip_ipaddr(addr, 192,168,2,1);
|
||||
tcp_connect(addr, UIP_HTONS(80), NULL);
|
||||
uip_ipaddr(&addr, 192,168,2,1);
|
||||
tcp_connect(&addr, UIP_HTONS(80), NULL);
|
||||
|
||||
printf("Connecting...\n");
|
||||
PROCESS_WAIT_EVENT_UNTIL(ev == tcpip_event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue