Migrate to LED HAL (CoAP example)

This commit is contained in:
George Oikonomou 2018-02-25 21:39:56 +00:00
parent 21151279c2
commit db058b166c
2 changed files with 8 additions and 8 deletions

View File

@ -37,12 +37,13 @@
*/
#include "contiki.h"
#if PLATFORM_HAS_LEDS
#include <string.h>
#include "coap-engine.h"
#include "dev/leds.h"
#include <string.h>
#if PLATFORM_HAS_LEDS || LEDS_COUNT
#define DEBUG 0
#if DEBUG
#include <stdio.h>

View File

@ -37,14 +37,13 @@
*/
#include "contiki.h"
#if PLATFORM_HAS_LEDS
#include <string.h>
#include "contiki.h"
#include "coap-engine.h"
#include "dev/leds.h"
#include <string.h>
#if PLATFORM_HAS_LEDS || LEDS_COUNT
static void res_post_handler(coap_message_t *request, coap_message_t *response, uint8_t *buffer, uint16_t preferred_size, int32_t *offset);
/* A simple actuator example. Toggles the red led */