Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

SWAP Protocol Decoder Encoder

danbim edited this page Apr 6, 2011 · 7 revisions

SWAP Protocol Decoder Encoder

The SSD WSN Application Protocol (SWAP) Protocol

The SWAP protocol provides an easy and lightweight alternative to service oriented application level protocols like the Constrained Application Protocol (CoAP).

Implementations

Message Types

Request Message

0:   CMD_TYPE = 70
1:   REQUEST_ID
2:   REQUEST_TYPE
3:   REQUEST_OPTIONS_LENGTH
4-n: REQUEST_OPTIONS

Response Message

0:   CMD_TYPE = 71
1:   REQUEST_ID
2:   RESPONSE_CODE
3:   RESPONSE_PAYLOAD_LENGTH
4-n: RESPONSE_PAYLOAD

Push Message

0: CMD_TYPE = 72
1: SUBSCRIPTION_ID
2: PAYLOAD_LENGTH
3-...: PAYLOAD