Bolt Iot connects to a Nagent workspace with an API key. Once it is connected, agents can call 6 Bolt Iot actions, such as "Analog Read", "Check Bolt device online status" and "Bolt IoT Digital Write". Nothing is enabled on connect: each action is allowed one at a time, and an action with side effects runs or waits for a person according to the agent's level.
Every operation an agent can call against Bolt Iot, with input parameters and output schema.
BOLT_IOT_ANALOG_READTool to read the analog value from a specified pin on a Bolt device. Use when you need sensor readings (0–1023) after confirming the device is online.
Input parameters
Analog input pin to read. Valid values: 'A0', 'A1', 'A2', 'A3'.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
BOLT_IOT_CHECK_DEVICE_STATUSTool to check whether a specified Bolt device is online. Use when you need to verify device connectivity before sending commands (e.g., control signals). Example: 'Check if device BOLT1234567 is online.'
Input parameters
Unique identifier of the Bolt IoT device. Must be in the format 'BOLTXXXXXXX'.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
BOLT_IOT_DIGITAL_WRITETool to set a digital pin HIGH or LOW on a specified Bolt device. Use when controlling actuators or LEDs via digital output.
Input parameters
The digital pin number to set (e.g., '0', '1', etc.).
Desired digital output state for the pin: 'HIGH' or 'LOW'.
The name or ID of the Bolt device as shown in your Bolt IoT account.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
BOLT_IOT_SERIAL_READTool to read incoming serial data from a Bolt device. Use when you've initialized UART with serialBegin and need to retrieve serial data.
Input parameters
ASCII value of the character up to which data should be read. If omitted, reads until newline (ASCII 10).
The name or ID of the Bolt device as shown in your Bolt IoT account.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
BOLT_IOT_SERIAL_WRITETool to send serial data to a Bolt device. Use when you need to transmit ASCII data over UART after initializing UART with serialBegin.
Input parameters
Data string to transmit as ASCII characters over UART.
The name or ID of the Bolt device as shown in your Bolt IoT account.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
BOLT_IOT_SERIAL_WRITE_READTool to send serial data and read the response on a Bolt device. Use when you need to transmit ASCII data over UART and capture its reply immediately.
Input parameters
ASCII string to transmit over UART.
The name or ID of the Bolt device as shown in your Bolt IoT account.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
Agents can call 6 Bolt Iot actions on Nagent, including "Analog Read", "Check Bolt device online status" and "Bolt IoT Digital Write". Analog Read: Read the analog value from a specified pin on a Bolt device. Each action is listed on this page with its input parameters and its output.
Bolt Iot connects with an API key, under your workspace's own connection. Nothing is enabled on connect: each action is allowed one at a time and can be scoped to the agents that need it.
Analog Read takes 1 required input: pin. It returns data, error and successful.