Link Search Menu Expand Document

SDK Device Templates

Jan 1 2022 at 12:00 AM

  1. Driver Characteristics
  2. Choosing the correct template
  3. Available templates

The Raptor™ SDK comes with a number of useful device driver templates. These templates can be used to rapidly generate a barebones microservice with all the boilerplate code required to get telemetry into the Raptor™ in as little time as possible. The various templates are designed to address common use-cases.

Driver Characteristics

Depending on the device driver template, the following characteristics will be present.

CharactesticDescription
Pull deviceThe device driver initiates communication with the device
Push deviceThe device initiates communication with the driver
Runs on ScheduleExecutes periodically rather than maintaining a stateful connection
Configured Property MappingsProperties are defined through configuration
One External Telemetry Source per DeviceOne-two-one relationship between configuration and physical device
Meta requests sent automaticallyRegistration is done on startup using the configured properties
Telemetry requests sent automaticallyTelemetry is sent automatically with each scheduled execution
Multiple External Telemetry Sources per DeviceMultiple physical devices connect to the same device interface
Meta requests sent manuallyDeveloper responsible for updating device registrations as needed
Telemetry requests sent manuallyDeveloper responsible for creating and sending telemetry information

Choosing the correct template

Choosing the correct template is the first step to creating a new device driver. The exact template that is best suited to your use case is influenced by several factors including:

  1. The communication direction (inbound vs outbound)
  2. The number of telemetry sources
  3. How registration and authorisation should be handled

Available templates

At present, the following templates are available.

More detailed information for each device template is provided on each template’s page.