WebRequestBody: {
    data: Json;
    type: "json";
} | {
    data: string;
    type: "string";
} | {
    data: string;
    type: "hex";
}

If the body of a CoAP request is valid CBOR, it will be available as json

Type declaration

  • data: Json
  • type: "json"

Type declaration

  • data: string
  • type: "string"

Type declaration

  • data: string
  • type: "hex"