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

device/DeviceFeedback.h

Committer:
rosterloh84
Date:
2015-02-15
Revision:
1:cac9b2960637

File content as of revision 1:cac9b2960637:

#pragma once

#include <stddef.h>
#include "mbed.h"
#include "rtos.h"

/**
 * Device Feedback handler
 */
class DeviceFeedback
{
public:
    DeviceFeedback(PwmOut led);
    
    void showSuccess();
    void showFailure();
    
protected:
    void sendMessage(uint8_t);
    void thread();
    static void thread_func(void const*);

private:
    PwmOut _led;
    Thread _thread;
    Mail<uint8_t, 16> _mail;
};