Function etsi_its_cpm_ts_msgs::access::setSensorID

Function Documentation

inline void etsi_its_cpm_ts_msgs::access::setSensorID(SensorInformation &sensor_information, const uint8_t sensor_id = 0)

Sets the sensorId of a SensorInformation object.

This function sets the sensorId of a SensorInformation object. The sensorId is limited to the range defined by Identifier1B::MIN and Identifier1B::MAX.

Parameters:
  • sensor_information – The SensorInformation object to set the sensorId for.

  • sensor_id – The sensorId to set (default: 0).

Throws:

std::invalid_argument – if the sensor_id is out of range.