Commit Graph

154 Commits

Author SHA1 Message Date
8e8d1d2ba1 Packet (unit tests)
- Added a unit test which tests the encoding
- So far it just checks that the version is encoded correctly
2023-09-12 10:33:11 +02:00
3a3febc61e Packet
- `getByte()` now tacks on the calculated first byte
- `getBytes()` encodes the rquest/response code now as well
2023-09-11 22:26:29 +02:00
d6a9f7d329 Packet
- Defined `CoapPacket` to represent a CoAP packet
- Added the required fields
- Constructor sets the version to `1` (the only version available)
- `getBytes()` no encodes the first byte of the CoAP header (versio, type and token length)
2023-09-11 22:18:19 +02:00
ec4f57af5d Codes
- Added the codes for messages
- These are 8-bits
2023-09-11 21:39:31 +02:00