sendSensorConfigFinish method

void sendSensorConfigFinish(
  1. SensorConfigFinishCallback callback
)

Sends a signal to indicate that the sensor configuration is complete.

This method sets the provided callback to be called when the sensor configuration process finishes. It then sends a request to finalize the configuration using a JSON payload.

Parameters:

  • callback: A SensorConfigFinishCallback function that will be invoked upon completion of the sensor configuration. This callback allows the user to handle any necessary actions once the configuration is successfully finished.

Note: Ensure that the callback is properly implemented to handle the completion of the sensor configuration. The method does not return any value.

Implementation

void sendSensorConfigFinish(SensorConfigFinishCallback callback) {
  _sensorConfigFinishCallback = callback;
  writeData(_buildConfigFinishJson());
}