LogoLogo
Thinger.io
  • IOTMP
    • Protocol
    • Message Structure
      • Message Header
      • Message Body
    • Messages
      • Ok
      • Error
      • Connect
      • Disconnect
      • Keep Alive
      • Run Resource
      • Describe Resources
      • Resource Streams
        • Start Stream
        • Stop Stream
        • Stream Data
    • Definitions
  • Thinger.io IOTMP
    • Features
      • REST API
      • Remote Desktop
      • Remote Proxies
      • Remote Webservices
      • Remote Terminal
      • Remote Filesystem
      • MQTT Interoperability
    • Implemenation
      • Messages
        • Connect
    • SDKs
      • Linux IOTMP
      • Arduino IOTMP
      • NodeJS IOTMP
      • Web IOTMP
      • Python SDK
Powered by GitBook
On this page
  • Message Type
  • Message Size

Was this helpful?

Edit on GitHub
  1. IOTMP
  2. Message Structure

Message Header

IOTMP Message Header

Last updated 2 years ago

Was this helpful?

The header is a part of a message that contains information about the type of message and the size of the data being transmitted.

Each IOTMP message contains a header that describes the and its over the wire. The minimum header length is 2 bytes.

Field
Type
Mandatory
Description

Yes

Yes

Message Type

A message type can be any of the following:

Message Type
Value
Description

Reserved

0x00

Reserved field

0x01

Success

0x02

Error

0x03

Initiates a connection and its parameters

0x04

Disconnect the current connection

0x05

Keep connection alive

0x06

Execute a resource

0x07

Describe available resources

0x08

Start a stream on the specified resource

0x09

Stop the ongoing stream

0x0A

Stream data

Message Size

This field specifies the message size in bytes, that is, the remaining number of bytes on the stream (including zero if the message has no remaining bytes).

Specifies the .

Specifies the , without taking into account the header size.

Type
Size
Ok
Error
Connect
Disconnect
Keep Alive
Run Resource
Describe Resources
Start Stream
Stop Stream
Stream Data
Message Type
Message Type
Message Size
Message Size
varint
varint