pycsamt.iot.protocols.http#

HTTP(S) telemetry transport using the standard library.

HTTPTelemetryClient POSTs each packet as a JSON body to endpoint. It relies only on urllib, so no third-party HTTP dependency is required. Bearer tokens and extra headers may be supplied through options or a SecurityConfig.

Classes

HTTPTelemetryClient([endpoint, dry_run, ...])

POST telemetry packets to an HTTP(S) endpoint.

class pycsamt.iot.protocols.http.HTTPTelemetryClient(endpoint=None, *, dry_run=False, timeout=10.0, token=None, headers=None, method='POST', **options)[source]#

Bases: BaseTelemetryClient

POST telemetry packets to an HTTP(S) endpoint.

Parameters:
protocol: IoTProtocol = 'http'#