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:19

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:11

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:4

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:18

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

Headers

Authorizationstring
Content-Typestring
Acceptstring
Accept-languagestring

Request body

idinteger

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

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)

hardware_idstring

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

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.

Example request

{
  "id": 9,
  "key": "a",
  "hardware_id": "officiis",
  "data": "officia",
  "file": "ab"
}

Changes