osd-contiki/examples/osd/ota-update/sketch.pde

23 lines
376 B
Plaintext
Raw Normal View History

/*
2017-10-05 16:53:26 +02:00
* Simple example with ota-update only
*/
extern "C" {
#include "contiki.h"
2017-10-06 13:25:53 +02:00
#include "bootloader_if.h"
#include "er-coap.h"
2017-10-05 16:53:26 +02:00
#include "ota-update.h"
}
void setup (void)
{
rest_init_engine ();
2017-10-05 16:53:26 +02:00
OTA_ACTIVATE_RESOURCES();
}
void loop (void)
{
2017-10-06 13:25:53 +02:00
printf ("Hello %lu\n",bootloader_get_active_part());
2017-10-05 16:53:26 +02:00
printf ("just sitting round and waiting for ota update\n");
}