Skip to content

GpioService

Method LwM2M request Description
getGpioMode get /1029/{variableId}/4
alias: /variable/{variableId}/gpio-mode
Get GPIO variable mode

getGpioMode

Minimal Tap Firmware version: 1.0

Get GPIO variable mode

Parameters

Name Type Description Notes
variableId number (uint16) ID of the variable

Returns

GPIOMode

Example

import { Tap } from "@iotize/tap";

const tap: Tap = ...;


const variableId = ...;
const response = await tap.service.gpio.getGpioMode(variableId);
const value = response.body();
console.log(`getGpioMode: ${value}`);