Bolt IoT
Developer toolsAPI key
Control and read Bolt WiFi modules through the Bolt Cloud: GPIO pins, PWM, servo and UART, device status, collected data and account details.
15 actions
| Action | Effect | Data handled | Scope |
|---|---|---|---|
| bolt_iot_list_devicesLists the Bolt devices the account can access, with their ids (BOLTxxxxxxx) and names | read | General | |
| bolt_iot_get_device_statusReturns whether a device is online or offline and since when (UTC) | read | General | |
| bolt_iot_digital_writeSets a GPIO pin (0 to 4) HIGH (3.3V) or LOW (0V), e.g | write | General | |
| bolt_iot_digital_readReads whether a GPIO pin (0 to 4) is HIGH (1) or LOW (0) | read | General | |
| bolt_iot_analog_readReads the analog pin A0 as a value from 0 to 1023, e.g | read | General | |
| bolt_iot_analog_writeDrives a GPIO pin (0 to 4) with PWM from 0 (0V) to 255 (3.3V), e.g | write | General | |
| bolt_iot_servo_writeTurns a servo on a GPIO pin (0 to 4) to an angle from 0 to 180 degrees | write | General | |
| bolt_iot_serial_beginStarts UART communication on the device at 9600 baud, before serial_write or serial_read | write | General | |
| bolt_iot_serial_writeSends a string over the device's UART TX line, optionally reading the reply until a character (serialWR) | write | General | |
| bolt_iot_serial_readReads the data received on the device's UART RX line, optionally up to a character | read | General | |
| bolt_iot_restart_deviceRestarts a Bolt device | write | General | |
| bolt_iot_get_device_versionReturns the hardware and firmware version of a device | read | General | |
| bolt_iot_fetch_device_dataReturns the data points a device collected for its product's hardware configuration, oldest first by default | read | General | |
| bolt_iot_get_account_planReturns the account's plan, Bolt Cloud (free) or Bolt Cloud Pro, which decides whether Pro commands work | read | General | |
| bolt_iot_get_alert_quota_usageReturns the quota and usage of email, SMS, WhatsApp and phone alerts for the account | read | General |