---
title: "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\")"
method: POST
path: "/api/sensors/flashlog"
tags: ["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

- `show` integer — 1 for displaying info in result JSON, 0 for not displaying (default).
- `save` integer — 1 for saving the data to a file (default), 0 for not save log file.
- `fill` integer — 1 for filling data gaps in the database, 0 for not filling gaps (default).
- `log_size_bytes` integer — 0x22 decimal result of log size requested from BEEP base.

## Headers

- `Authorization` string
- `Content-Type` string
- `Accept` string
- `Accept-language` string

## Request body

- object
  - `id` integer — Device id to target. (Required without key and hardware_id)
  - `hardware_id` string — Hardware id of the device as device name in TTN. (Required without id and key)
  - `key` string — 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)
  - `data` string — MX_FLASH_LOG Hexadecimal string lines (new line) separated, with many rows of log data, or text file binary with all data inside.
  - `file` string — 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.
  - `show` boolean
  - `save` boolean
  - `fill` boolean
  - `log_size_bytes` integer

## Response `200`

## Changes

> 15 revisions in range; 1 could not be searched.

- **2023-05-10** `f514370b41c6` — 4 info
  - added the new optional request property `fill`
  - added the new optional request property `log_size_bytes`
  - added the new optional request property `save`
  - added the new optional request property `show`
- **2022-06-20** `a87569f002e1` — 1 info
  - added the new optional `header` request parameter `Accept-language`
- **2022-06-10** `568ca15f3476` — 5 warning
  - deleted the `header` request parameter `Accept-language`
  - removed the request property `fill`
  - removed the request property `log_size_bytes`
  - removed the request property `save`
  - …1 more

[Change history](https://skmtc.dev/beepnl/apis/beep/changes/api/sensors/flashlog/post.md)

---

[API](https://skmtc.dev/beepnl/apis/beep.md) · [All operations](https://skmtc.dev/beepnl/apis/beep/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beepnl/beep/revisions/7f1e35deb524/schema)
