Accessing the rapidM2M BACKEND API made easy
Accessing the rapidM2M BACKEND API made easy
the BLO's Application Model Id
the BLO's unique id
the BLO's authentication string to access the api
the current development phase
the blo's access level
specifies the number of milliseconds before the request time is over.
contains additional information about the error
optional object with query parameters, or null/undefined
valid json data provided by reply body
api path with optional references '$xxx' to .placeholders{}
BAPI.storage.xxx
or storage.xxx
directly anywhere in you code.When passed a key name, will return that key's value.
When passed a key name and value, will add that key to the storage, or update that key's value if it already exists.
When passed a key name, will remove that key from the storage.
Returns an integer representing the number of data items stored in the Storage object.
When invoked, will empty all keys out of the storage.
Info message
BAPI.log.xxx
or log.xxx
directly anywhere in you code.HTTP REST GET request
HTTP REST PUT request
HTTP REST POST request
HTTP REST POST request
SEND a file to the backend
add new watcher for the given resource
triggers when data is updated/created
resource | _uid | extra references |
---|---|---|
sites | site | customer_uid |
config0-C | site | customer_uid |
histdata0-9 | site | customer_uid |
files | file | site_uid customer_uid |
alarms | alarm | site_uid customer_uid |
customers | customer | NONE |
users | user | NONE |
devices | device | customer_uid |
triggers when data is deleted
triggers when the general inquiry finished
remove resource watcher
add new resource to "api/ext.../
{headers : {custom_header1 : value, ... }}
Convert any javascript date object to a rapidm2m timestamp.
Convert times or date objects to rapidm2m timestamp
Convert rapidm2m timestamp to date object
Convert rapidm2m timestamp to unix timestamp
Convert rapidm2m timestamp to a date string
Add or remove milliseconds to/from stamp
Add new watcher for api resource
add new resource to "api/ext.../"
Creates a new instance of the BAPI class