#include "contiki.h"
#include "dev/button-sensor.h"
#include "dev/leds.h"
#include <stdio.h>
PROCESS(example_trickle_process,
"Trickle example");
AUTOSTART_PROCESSES(&example_trickle_process);
static void
trickle_recv(struct trickle_conn *c)
{
printf("%d.%d: trickle message received '%s'\n",
}
const static struct trickle_callbacks trickle_call = {trickle_recv};
static struct trickle_conn trickle;
{
SENSORS_ACTIVATE(button_sensor);
while(1) {
data == &button_sensor);
trickle_send(&trickle);
}
}