Make rapidM2M's device logic a little bit more look like all these ...uino platforms
The predefined texts for the AppLog event codes and parameters described in this section are used by the libraries provided by Microtronics. They are grouped by topic.
It is also recommended to use these predefined AppLog messages in your own library and applications if suitable to simplify the interpretation of log messages across several different applications.
Event Code | Parameter | Explanation | ||
---|---|---|---|---|
Constant | Plain text | Constant | Plain text | |
MT_BACKUPSUPPLY | MT.BackupSupply | MT_BACKUPSUPPLY_BATTERY_ACTIVE | Switched to buffer battery | Supply switched to the rechargeable buffer battery |
MT_BACKUPSUPPLY | MT.BackupSupply | MT_BACKUPSUPPLY_EXT_SUPPLY_ACT | Supply voltage available again | Supply switched back to the ext. supply voltage input (VIN) |
MT_BACKUPSUPPLY | MT.BackupSupply | MT_BACKUPSUPPLY_OUTAGE_EXPIRED | Outage timeout expired | Time expired for which a short-term supply voltage failure is ignored |
MT_SHUTDOWN | MT.Shutdown | Command to shut down the system issued by the Device Logic |
Event Code | Parameter | Explanation | ||
---|---|---|---|---|
Constant | Plain text | Constant | Plain text | |
MT_APPUPDATED | MT.AppUpdated | MT_APPUPDATED_VERSIONINFO | From V%d to V%d | The DLO has been updated from version x to version y. %d ... previously installed version (x) %d ... currently installed version (y) |
MT_APPCHANGED | MT.AppChanged | MT_APPCHANGED_VERSIONINFO | From %s, V%d to %s, V%d | The DLO was replaced by another DLO. %s ... pipAppId of previously installed DLO %d ... version of previously installed DLO %s ... pipAppId of currently installed DLO %d ... version of currently installed DLO |
MT_MODFWUPDATED | MT.ModFwUpdated | MT_MODFWUPDATED_VERSIONINFO | %s: from %s to %s | The firmware of one of the modules in the device has been updated. %s ... designation of the module (e.g. IO controller) %s ... previously installed FW version %s ... currently installed FW version |
Make rapidM2M's device logic a little bit more look like all these ...uino platforms
copy bytes from one buffer to the other
compare two buffers byte by byte
convert a byte buffer into hex string
type of value for mempeek() and mempoke()
write a value into a memory buffer
read value from a memory buffer
write a value into a memory buffer
read a value from a memory buffer
check if next full mulitple of interval, shifted by warmup time, reached
static t_;
check if next full mulitple of moment-interval reached
static t_;
check if next full mulitple of period-interval reached
static t_;
Trigger an action every cycleTime_s seconds. The cycle starts with the first call (and NOT /w full multiple of cycleTime_s).
static t_;
Contains 0 for reset, or date/time when activity will be triggered next.Trigger an action after value changed and becomes stable for some time
static t_;
Trigger a delayed action after the first change in value
static t_;
convert UTC stamp into ISO 8601 string "yyyy-mm-ddThh:nn:ssZ"
See StdLib for further features such as
seconds since 31.12.1999 0:00
Sets the pin mode for a GPIO.
Sets the output level of a GPIO.
Reads the signal level of a GPIO.
Reads the signal level of a GPIO.
Number of GPIO pin, ranging from 0 (= first GPIO of the device) to PIN_COUNT-1
total number of pins; depends on current device hardware
Signal levels of the GPIOs
Sets the pin mode for a GPIO.
Sets the output level of a GPIO.
Reads the signal level of a GPIO.
Reads the signal level of a GPIO.
Number of GPIO pin, ranging from 0 (= first GPIO of the device) to PIN_COUNT-1
total number of pins; depends on current device hardware
Signal levels of the GPIOs
Sets the pin mode for a GPIO.
Sets the output level of a GPIO.
Reads the signal level of a GPIO.
Reads the signal level of a GPIO.
Number of GPIO pin, ranging from 0 (= first GPIO of the device) to PIN_COUNT-1
total number of pins; depends on current device hardware
Signal levels of the GPIOs
Sets the pin mode for a GPIO.
Sets the output level of a GPIO.
Reads the signal level of a GPIO.
Reads the signal level of a GPIO.
Number of GPIO pin, ranging from 0 (= first GPIO of the device) to PIN_COUNT-1
total number of pins; depends on current device hardware
Signal levels of the GPIOs
Sets the pin mode for a GPIO.
Sets the output level of a GPIO.
Reads the signal level of a GPIO.
Reads the signal level of a GPIO.
Number of GPIO pin, ranging from 0 (= first GPIO of the device) to PIN_COUNT-1
total number of pins; depends on current device hardware
Signal levels of the GPIOs
total number of watchable pins
The call is ignored if no watch has been set yet.
write numeric value to registry
write string value to registry
report installed application, version and build stamp to registry
Sets these registry values of RM2M_REG_APP_OTP:
All APM_xxx constants are to be found in "dlo/~auto.dde"
setup WiFi interface configuration and authentication
setup LAN interface configuration
check if val changed (by at least mindiff)
get random number
get index of first key inside list
if key not found the result is -1, or the number of list items if takeEndIfNotFound=true
get index of
if key not found the result is -1, or the number of list items if takeEndIfNotFound=true
convert fix comma number into string
convert fix comma number into string
convert number into string with NAMUR tokens
Inspired by NAMUR NE43.
Example: s32ToNamurStr(1234,1) → "123.4"
convert number into string with NAMUR tokens
Inspired by NAMUR NE43.
Example: s16ToNamurStr(1234,1) → "123.4"
convert number into string with NAMUR tokens
Inspired by NAMUR NE43.
Example: s8ToNamurStr(123,1) → "12.3"
convert unsigned number into string with NAMUR tokens
Inspired by NAMUR NE43.
Example: u32ToNamurStr(1234,1) → "123.4"
convert unsigned number into string with NAMUR tokens
Inspired by NAMUR NE43.
Example: u16ToNamurStr(1234,1) → "123.4"
convert unsigned number into string with NAMUR tokens
Inspired by NAMUR NE43.
Example: u8ToNamurStr(123,1) → "12.3"
do nothing! - typ. used to avoid "036: empty statement" errors
returns always true; typ. used to avoid "206: redundant test" warnings
32bit color, 0x00RRGGBB
used by perfStop() to accumulate long-term stats
start performance measurement
finish performance measurement andprint results to console if changed
overrides default console buffer size (4k)
prepare device for application start
read internal temperature sensor
control the (onboard) system LED(s)
control the (onboard) system LED(s)
control the (onboard) system LED(s)
control the (onboard) system LED(s)
control the (onboard) system LED(s)
control the (onboard) system LED(s)
control the (onboard) system LED(s)