Add a data point method

This method creates a new data point entry inside the DataPoints container.

data.add(stream_name, value[, units][, quality][, description][, location])

Required parameters

Optional keyword parameters

Return value

None.

If any of the parameters values are of an inappropriate type (such as an integer for stream name), a TypeError or ValueError is raised indicating the problem.

This method will raise an OSError with the error code ENOSPC when there is not enough room to add the data point to the upload buffer. The amount of space each data point consumes in the buffer varies based on the length of the string value and how many of the optional parameters are specified.

Note DataPoints objects that use the TRANSPORT_UDP transport are limited to one data point per DataPoints container.