An application to log WiFi SSIDs for position lookup testing

Dependencies:   C027_Support SWO mbed-rtos mbed picojson

Fork of lpc4088_ebb_ublox_Cellular_PubNubDemo_rtos by EmbeddedArtists AB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DeviceFeedback.h Source File

DeviceFeedback.h

00001 #pragma once
00002 
00003 #include <stddef.h>
00004 #include "mbed.h"
00005 #include "rtos.h"
00006 
00007 /**
00008  * Device Feedback handler
00009  */
00010 class DeviceFeedback
00011 {
00012 public:
00013     DeviceFeedback(PwmOut led);
00014     
00015     void showSuccess();
00016     void showFailure();
00017     
00018 protected:
00019     void sendMessage(uint8_t);
00020     void thread();
00021     static void thread_func(void const*);
00022 
00023 private:
00024     PwmOut _led;
00025     Thread _thread;
00026     Mail<uint8_t, 16> _mail;
00027 };