Christopher Wu / Mbed 2 deprecated Trail

Dependencies:   Chainable_RGB_LED mbed mbedConnectorInterface mbedEndpointNetwork

Fork of IoT_LED_demo by MBED_DEMOS

Embed: (wiki syntax)

« Back to documentation index

LEDResource Class Reference

LEDResource Class Reference

LightResource class. More...

#include <OnBoardLED.h>

Public Member Functions

 LEDResource (const Logger *logger, const char *name, const bool observable=false)
 Default constructor.
virtual string get ()
 Get the value of the LED.
virtual void put (const string value)
 Set the value of the LED.

Detailed Description

LightResource class.

Definition at line 58 of file OnBoardLED.h.


Constructor & Destructor Documentation

LEDResource ( const Logger *  logger,
const char *  name,
const bool  observable = false 
)

Default constructor.

Parameters:
loggerinput logger instance for this resource
nameinput the Light resource name
observableinput the resource is Observable (default: FALSE)

Definition at line 68 of file OnBoardLED.h.


Member Function Documentation

virtual string get (  ) [virtual]

Get the value of the LED.

Returns:
string containing the last setting

Definition at line 84 of file OnBoardLED.h.

virtual void put ( const string  value ) [virtual]

Set the value of the LED.

Parameters:
stringinput the string containing the desired setting

Definition at line 92 of file OnBoardLED.h.