v1

latestOpenAPI 3.0.32026-07-171140286.6 KB
Api\MeasurementController

api/sensors/flashlog POST data from BEEP base fw 1.5.0+ FLASH log (with timestamp), interpret data and store in InlfuxDB (overwriting existing data). BEEP base BLE cmd: when the response is 200 OK and erase_mx_flash > -1, provide the ERASE_MX_FLASH BLE command (0x21) to the BEEP base with the last byte being the HEX value of the erase_mx_flash value (0 = 0x00, 1 = 0x01, i.e.0x2100, or 0x2101, i.e. erase_type:"fatfs", or erase_type:"full")

post/api/sensors/flashlog

Query parameters

showinteger

1 for displaying info in result JSON, 0 for not displaying (default).

Example:3

1 for displaying info in result JSON, 0 for not displaying (default).

saveinteger

1 for saving the data to a file (default), 0 for not save log file.

Example:1

1 for saving the data to a file (default), 0 for not save log file.

fillinteger

1 for filling data gaps in the database, 0 for not filling gaps (default).

Example:17

1 for filling data gaps in the database, 0 for not filling gaps (default).

log_size_bytesinteger

0x22 decimal result of log size requested from BEEP base.

Example:19

0x22 decimal result of log size requested from BEEP base.

Headers

Authorizationstring
Content-Typestring
Acceptstring
Accept-languagestring

Request body

idinteger

Device id to target. (Required without key and hardware_id)

hardware_idstring

Hardware id of the device as device name in TTN. (Required without id and key)

keystring

DEV EUI of the sensor to enable storing sensor data incoming on the api/sensors or api/lora_sensors endpoint. (Required without id and hardware_id)

datastring

MX_FLASH_LOG Hexadecimal string lines (new line) separated, with many rows of log data, or text file binary with all data inside.

filestring

File with MX_FLASH_LOG Hexadecimal string lines (new line) separated, with many rows of log data, or text file binary with all data inside.

showboolean
saveboolean
fillboolean
log_size_bytesinteger

Example request

{
  "id": 6,
  "hardware_id": "exercitationem",
  "key": "et",
  "data": "fugit",
  "file": "qui",
  "save": true,
  "log_size_bytes": 8
}