bibliothek
Summary
Members
Descriptions
define
SENSORTYPE
enum
Status
class
BrightnessSensor
class
EmptyEEPROM
class
EmptyTestRadioDevice
class
RadioDevice
class
SensorBoardDevice
class
SensorDevice
class
SetupButtonDevice
class
StatusDevice
class
Stm32EEPROM
class
STM32SensorBoard
class
StorageDevice
Members
define
SENSORTYPE
define
SENSORTYPE
enum
Status
enum
Status
Values
Descriptions
OK
SETUP_MODE
LINKING
ERROR
SEND_MQTT_MESSAGE
EMPTY
class BrightnessSensor
BrightnessSensor
class BrightnessSensor
: public SensorDevice
Summary
Members
Descriptions
public virtual bool
begin
()
Initialization of the sensor and determination of the output-mode.
public virtual bool
loop
()
Is called for every run.
public virtual JsonObject &
getValueToSendAsJson
(DynamicJsonBuffer & buffer)
Returns the current value of the sensor as Json-object.
public virtual JsonArray &
getTypeAsJson
(DynamicJsonBuffer & buffer)
Returns the type of the sensor as Json-object.
Members
Initialization of the sensor and determination of the output-mode.
Parameters
TRUE
Successful initializationFALSE
Sensor could not be initialized
Is called for every run.
Returns the current value of the sensor as Json-object.
Returns
Current value as Json-object
Returns the type of the sensor as Json-object.
Returns
Type as Json-object
class EmptyEEPROM
EmptyEEPROM
class EmptyEEPROM
: public StorageDevice
Summary
Members
Descriptions
public virtual String
readFromStorage
(String key)
Returns the value to the associated key from memory.
public virtual bool
writeInStorage
(String key,String value)
Permanently saves the value with the associated key in memory.
public virtual bool
removeFromStorage
(String key)
Removes the value from the memory.
Members
Returns the value to the associated key from memory.
Parameters
key
key of the value
Returns
value
Permanently saves the value with the associated key in memory.
Parameters
TRUE
Value saved successfullyFALSE
Value could't be saved
Removes the value from the memory.
Parameters
TRUE
Value removed successfullyFALSE
Value could't be removed
class EmptyTestRadioDevice
EmptyTestRadioDevice
class EmptyTestRadioDevice
: public RadioDevice
Summary
Members
Descriptions
public
EmptyTestRadioDevice
()
public virtual bool
begin
()
Initialization of radio module.
public virtual bool
loop
()
Is called for every run.
public virtual bool
startRadioDevice
()
Radio module is started.
public virtual bool
stopRadioDevice
()
Radio module is stopped.
public virtual int
getMaxMessageLength
()
Returns the maximum length of the messages that can be sent by the radio module.
public virtual JsonVariant
getTypeAsJson
(DynamicJsonBuffer & buffer)
Returns the type of the radio module as Json-object.
public virtual JsonObject &
getConfigAsJson
(DynamicJsonBuffer & buffer)
Returns the configuration of the radio module as Json-object.
public virtual void
setServerConfig
(JsonObject & jsonConfig)
Sets the configuration of the radio module.
public virtual bool
sendMessage
(String & buffer)
Sends the message to the server.
public virtual bool
connect
()
The connection to the server is being established.
Members
Initialization of radio module.
Parameters
TRUE
Successful initializationFALSE
Radio module could not be initialized
Is called for every run.
Radio module is started.
Parameters
TRUE
Successful startFALSE
Radio module could not be started
Radio module is stopped.
Parameters
TRUE
Successful StopFALSE
Radio module could not be stopped
Returns the maximum length of the messages that can be sent by the radio module.
Returns
maximum message-length
Returns the type of the radio module as Json-object.
Returns
type as Json-object
Returns the configuration of the radio module as Json-object.
Returns
configuration as Json-object
Sets the configuration of the radio module.
Parameters
jsonConfig
configuration of the radio module
Sends the message to the server.
Parameters
buffer
the sending message
Parameters
TRUE
Message sent successfullyFALSE
Message could not be sent
The connection to the server is being established.
Parameters
TRUE
Connection is established successfullyFALSE
Connection could not be established
class PullUpSetupButtonDevice
PullUpSetupButtonDevice
class PullUpSetupButtonDevice
: public SetupButtonDevice
Summary
Members
Descriptions
public
PullUpSetupButtonDevice
(int buttonPin)
public virtual bool
begin
()
Initialization of the button and determination of the input-mode for the button.
public virtual bool
loop
()
Is called for every run.
public virtual bool
isPressed
()
Returns, if the button is pressed.
Members
Initialization of the button and determination of the input-mode for the button.
Parameters
TRUE
Initialization successfulFALSE
Button could not be initialized
Is called for every run.
Returns, if the button is pressed.
Parameters
TRUE
Button is pressedFALSE
Button is not pressed
class RadioDevice
RadioDevice
Summary
Members
Descriptions
public bool
begin
()
Initialization of radio module.
public bool
loop
()
Is called for every run.
public bool
startRadioDevice
()
Radio module is started.
public bool
stopRadioDevice
()
Radio module is stopped.
public int
getMaxMessageLength
()
Returns the maximum length of the messages that can be sent by the radio module.
public JsonVariant
getTypeAsJson
(DynamicJsonBuffer & buffer)
Returns the type of the radio module as Json-object.
public JsonObject &
getConfigAsJson
(DynamicJsonBuffer & buffer)
Returns the configuration of the radio module as Json-object.
public void
setServerConfig
(JsonObject & jsonConfig)
Sets the configuration of the radio module.
public bool
sendMessage
(String & buffer)
Sends the message to the server.
public bool
connect
()
The connection to the server is being established.
Members
Initialization of radio module.
Parameters
TRUE
Successful initializationFALSE
Radio module could not be initialized
Is called for every run.
Radio module is started.
Parameters
TRUE
Successful startFALSE
Radio module could not be started
Radio module is stopped.
Parameters
TRUE
Successful StopFALSE
Radio module could not be stopped
Returns the maximum length of the messages that can be sent by the radio module.
Returns
maximum message-length
Returns the type of the radio module as Json-object.
Returns
type as Json-object
Returns the configuration of the radio module as Json-object.
Returns
configuration as Json-object
Sets the configuration of the radio module.
Parameters
jsonConfig
configuration of the radio module
Sends the message to the server.
Parameters
buffer
the sending message
Parameters
TRUE
Message sent successfullyFALSE
Message could not be sent
The connection to the server is being established.
Parameters
TRUE
Connection is established successfullyFALSE
Connection could not be established
class SensorBoardDevice
SensorBoardDevice
Summary
Members
Descriptions
public
SensorBoardDevice
()
public
~SensorBoardDevice
()
public bool
begin
()
Initialization of the sensor-board.
public bool
loop
()
This method is run through in every loop in the ino-file.
public bool
sendMessage
(String & buffer)
Sending a message via the radio-module.
public
StatusDevice
&
getStatus
()
Returns the device for the output of the status.
public void
setStatus
(
StatusDevice
& status)
Sets the device for the output of the status.
public
SetupButtonDevice
&
getSetupButton
()
Returns the button that starts the setup-mode.
public void
setSetupButton
(
SetupButtonDevice
& setupButton)
Sets the button that starts the setup-mode.
public
RadioDevice
&
getRadioModul
()
Returns the radio-module that is used for the connection to the bridge.
public void
setRadioModul
(
RadioDevice
& radioModul)
Sets the radio-module that is used for the connection to the bridge.
public
SensorDevice
&
getSensor
()
Returns the sensor that is installed on the sensor-board.
public void
setSensor
(
SensorDevice
& sensor)
Sets the sensor that is installed on the sensor-board.
public
StorageDevice
&
getStorageDevice
()
Returns the memory, which stored the data permanently.
public void
setStorageDevice
(
StorageDevice
& storage)
Sets the memory, which stored the data permanently.
public Stream &
getConnectionStream
()
Returns the http-connection that is used for the connection to the gateway.
public void
setConnectionStream
(Stream * stream)
Sets the http-connection that is used for the connection to the gateway.
public int
getSetupModePressTime
()
Returns the amount of seconds that the button needs to be pressed to enter the setup-mode.
public void
setSetupModePressTime
(int pressTime)
Sets the amount of seconds that the button needs to be pressed to enter the setup-mode. Therefore the time for the setup-mode needs to be shorter than the time for the reset-mode.
public int
getResetPressTime
()
Returns the amount of seconds that the button needs to be pressed to enter the reset-mode.
public void
setResetPressTime
(int pressTime)
Sets the amount of seconds that the button needs to be pressed to enter the reset-mode. Therefore the time for the reset-mode needs to be longer than the time for the setup-mode.
public char *
getUuid
()
Returns the UUID of the device.
public void
setUuid
(const char * uuid)
Sets the UUID of the device.
public bool
isInSetupMode
()
Indicating if the sensor-board is in setup-mode.
public JsonObject &
getContextAsJson
(JsonBuffer & buffer)
Returns the JsonLD-context of the Sensor-Board.
Members
Initialization of the sensor-board.
Parameters
TRUE
Successful initializationFALSE
Sensor-Board could not be initialized
This method is run through in every loop in the ino-file.
Parameters
TRUE
Method ran through successfullyFALSE
Method failed to run through
Sending a message via the radio-module.
Parameters
buffer
The message to be sent
Parameters
TRUE
Message was sent successfullyFALSE
Message could not be sent
Returns the device for the output of the status.
Returns
statusDevice
Sets the device for the output of the status.
Parameters
status
StatusDevice to be set
Returns the button that starts the setup-mode.
Returns
setupButton
Sets the button that starts the setup-mode.
Parameters
setupButton
SetupButton to be set
Returns the radio-module that is used for the connection to the bridge.
Returns
radioModul
Sets the radio-module that is used for the connection to the bridge.
Parameters
radioModul
Radio-module to be set
Returns the sensor that is installed on the sensor-board.
Returns
sensor
Sets the sensor that is installed on the sensor-board.
Parameters
sensor
Sensor to be set
Returns the memory, which stored the data permanently.
Returns
storage
Sets the memory, which stored the data permanently.
Parameters
storage
to be set
Returns the http-connection that is used for the connection to the gateway.
Returns
connection
Sets the http-connection that is used for the connection to the gateway.
Parameters
connection
HttpConnection to be set
Returns the amount of seconds that the button needs to be pressed to enter the setup-mode.
Returns
Time in seconds
Sets the amount of seconds that the button needs to be pressed to enter the setup-mode. Therefore the time for the setup-mode needs to be shorter than the time for the reset-mode.
Parameters
pressTime
Time in seconds
Returns the amount of seconds that the button needs to be pressed to enter the reset-mode.
Returns
Time in seconds
Sets the amount of seconds that the button needs to be pressed to enter the reset-mode. Therefore the time for the reset-mode needs to be longer than the time for the setup-mode.
Parameters
pressTime
Time in seconds
Returns the UUID of the device.
Returns
uuid
Sets the UUID of the device.
Parameters
uuid
UUID to be set
Indicating if the sensor-board is in setup-mode.
Parameters
TRUE
Sensor-Board is in setup-modeFALSE
Sensor-Board is not in setup-mode
Returns the JsonLD-context of the Sensor-Board.
Returns
context as JsonObject
class SensorDevice
SensorDevice
Summary
Members
Descriptions
public bool
begin
()
Initialization of the sensor and determination of the output-mode.
public bool
loop
()
Is called for every run.
public JsonObject &
getValueToSendAsJson
(DynamicJsonBuffer & buffer)
Returns the current value of the sensor as Json-object.
public JsonArray &
getTypeAsJson
(DynamicJsonBuffer & buffer)
Returns the type of the sensor as Json-object.
Members
Initialization of the sensor and determination of the output-mode.
Parameters
TRUE
Successful initializationFALSE
Sensor could not be initialized
Is called for every run.
Returns the current value of the sensor as Json-object.
Returns
Current value as Json-object
Returns the type of the sensor as Json-object.
Returns
Type as Json-object
class SetupButtonDevice
SetupButtonDevice
Summary
Members
Initialization of the button and determination of the input-mode for the button.
Parameters
TRUE
Initialization successfulFALSE
Button could not be initialized
Is called for every run.
Returns, if the button is pressed.
Parameters
TRUE
Button is pressedFALSE
Button is not pressed
class SingleLedStatusDevice
SingleLedStatusDevice
class SingleLedStatusDevice
: public StatusDevice
Summary
Members
Descriptions
public
SingleLedStatusDevice
(int ledPin)
public virtual bool
begin
()
Initialization of the status and definition of the output-mode.
public virtual bool
loop
()
Is called in every turn and returns the current status.
Members
Initialization of the status and definition of the output-mode.
Parameters
TRUE
Successful initializationFALSE
Status could not be initialized
Is called in every turn and returns the current status.
class StatusDevice
StatusDevice
Summary
Members
Initialization of the status and definition of the output-mode.
Parameters
TRUE
Successful initializationFALSE
Status could not be initialized
Is called in every turn and returns the current status.
Sets the status.
Parameters
status
-> the status to be set
class Stm32EEPROM
Stm32EEPROM
class Stm32EEPROM
: public StorageDevice
Summary
Members
Descriptions
public virtual String
readFromStorage
(String key)
Returns the value to the associated key from memory.
public virtual bool
writeInStorage
(String key,String value)
Permanently saves the value with the associated key in memory.
public virtual bool
removeFromStorage
(String key)
Removes the value from the memory.
Members
Returns the value to the associated key from memory.
Parameters
key
key of the value
Returns
value
Permanently saves the value with the associated key in memory.
Parameters
TRUE
Value saved successfullyFALSE
Value could't be saved
Removes the value from the memory.
Parameters
TRUE
Value removed successfullyFALSE
Value could't be removed
class STM32SensorBoard
STM32SensorBoard
class STM32SensorBoard
: public SensorBoardDevice
Summary
Members
Descriptions
Members
class StorageDevice
StorageDevice
Summary
Members
Descriptions
public String
readFromStorage
(String key)
Returns the value to the associated key from memory.
public bool
writeInStorage
(String key,String value)
Permanently saves the value with the associated key in memory.
public bool
removeFromStorage
(String key)
Removes the value from the memory.
Members
Returns the value to the associated key from memory.
Parameters
key
key of the value
Returns
value
Permanently saves the value with the associated key in memory.
Parameters
TRUE
Value saved successfullyFALSE
Value could't be saved
Removes the value from the memory.
Parameters
TRUE
Value removed successfullyFALSE
Value could't be removed
Generated by Moxygen
Last updated