Decoder type
Decoder type resource for payload decoder definitions.
SyncDecoderTypes
SyncDecoderTypes(client: SyncClient)
Bases: BaseResource['SyncClient']
Decoder types resource for device payload decoders.
Methods:
get
get(decoder_id: str) -> DecoderTypeInstance
Retrieve a decoder type by its ID.
Parameters:
-
(decoder_idstr) –The unique identifier of the decoder type.
Returns:
-
DecoderTypeInstance(DecoderTypeInstance) –The decoder type instance matching the given ID.
get_all
get_all() -> list[DecoderTypeInstance]
List all available decoder types.
Returns:
-
list[DecoderTypeInstance]–list[DecoderTypeInstance]: List of all decoder type instances.
AsyncDecoderTypes
AsyncDecoderTypes(client: AsyncClient)
Bases: BaseResource['AsyncClient']
Async decoder types resource for device payload decoders.
Methods:
get
async
get(decoder_id: str) -> DecoderTypeInstance
Retrieve a decoder type by its ID.
Parameters:
-
(decoder_idstr) –The unique identifier of the decoder type.
Returns:
-
DecoderTypeInstance(DecoderTypeInstance) –The decoder type instance matching the given ID.
get_all
async
get_all() -> list[DecoderTypeInstance]
List all available decoder types.
Returns:
-
list[DecoderTypeInstance]–list[DecoderTypeInstance]: List of all decoder type instances.
Request and response types: Decoder type models.