Adrian Mitevski / Mbed 2 deprecated mDot_LoRa_Sensornode

Dependencies:   mDot_LoRa_Sensornode_Flowmeter_impl mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

TaskCommandHandler Class Reference

TaskCommandHandler Class Reference

This TaskCommandHandler Class handles all the received Commands from LoRa. More...

#include <TaskCommandHandler.h>

Public Member Functions

osStatus start ()
 Starts the task by building it and connecting a callback function to the mbed::Thread.
osStatus stop ()
 Stops the task.
TASK_STATE getState ()
 Gets the actual state of the Task either RUNNING or SLEEPING.
void setDebugSerial (RawSerial *debugSerial)
 Set a serial interface thats used for debugging the datastream which will be sent via LoRa and to show data handling relevant information.

Detailed Description

This TaskCommandHandler Class handles all the received Commands from LoRa.

Definition at line 24 of file TaskCommandHandler.h.


Member Function Documentation

TASK_STATE getState (  )

Gets the actual state of the Task either RUNNING or SLEEPING.

Returns:

Definition at line 112 of file TaskCommandHandler.cpp.

void setDebugSerial ( RawSerial *  debugSerial )

Set a serial interface thats used for debugging the datastream which will be sent via LoRa and to show data handling relevant information.

Parameters:
debugSerialthe Serial interface used to show information

Definition at line 104 of file TaskCommandHandler.cpp.

osStatus start (  )

Starts the task by building it and connecting a callback function to the mbed::Thread.

Returns:

Definition at line 23 of file TaskCommandHandler.cpp.

osStatus stop (  )

Stops the task.

Should only be used after start() was used

Returns:

Definition at line 29 of file TaskCommandHandler.cpp.