Migrate to LED HAL (CoAP example)
This commit is contained in:
parent
21151279c2
commit
db058b166c
@ -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>
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user