Commit Graph

208 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire 61e8d51207 Pipelines
- Run package lists updates prior
2023-10-16 17:22:57 +02:00
Tristan B. Velloza Kildaire c16b8a4b06 Client
- `newMid2()` now uses the updated `findNextFree(..., ...)` from niknaks
2023-10-15 17:03:45 +02:00
Tristan B. Velloza Kildaire ae0235388a Dub
- Upgraded to new version of `niknaks` `0.4.3`
2023-10-15 17:02:26 +02:00
Tristan B. Velloza Kildaire 2ead083ca8 Dub
- Require a minimum version of `0.1.0` of the niknaks library
2023-10-01 18:12:43 +02:00
Tristan B. Velloza Kildaire 9e93acd408 Client
- Fixed duplicate imports causing compilation issues with `ldc2`

UDP

- Fixed duplicate imports causing compilation issues with `ldc2`
2023-09-30 20:35:34 +02:00
Tristan B. Velloza Kildaire 3bd731889d Dub
- Added `niknaks` dependency

Utils

- Now use niknaks library for these routines
2023-09-30 20:23:55 +02:00
Tristan B. Velloza Kildaire 32782b002a Utils
- Added "To LIttle Endian" testing
2023-09-30 19:20:07 +02:00
Tristan B. Velloza Kildaire 8c7317939c Utils
- Clarified
2023-09-30 19:18:25 +02:00
Tristan B. Velloza Kildaire e8eb4ff975 Utils
- Added missing unit test for `order!(T)(T, Order)`
2023-09-30 19:17:15 +02:00
Tristan B. Velloza Kildaire 8c3fa09dd0 Protocol (package)
- Added missing `CoapOption` import
2023-09-30 16:31:15 +02:00
Tristan B. Velloza Kildaire b6c2989d4d CoapPacket
- Documented `getBytes()`, `this()` and all fields
2023-09-30 16:30:13 +02:00
Tristan B. Velloza Kildaire 56a82faeba CoapPacket
- Documented private method `setTokenLength(ulong tkl)`
2023-09-30 16:27:28 +02:00
Tristan B. Velloza Kildaire 8fa04e7b75 CoapPacket
- Documented `toString()`
2023-09-30 16:26:37 +02:00
Tristan B. Velloza Kildaire edf989d698 CoapPacket
- Documented `fromBytes(ubyte[] data)`
2023-09-30 16:25:48 +02:00
Tristan B. Velloza Kildaire deaed433a7 CoapPacket
- Documented some more methods
2023-09-30 16:24:24 +02:00
Tristan B. Velloza Kildaire 6011a18c31
Create todo.md 2023-09-29 15:04:37 +02:00
Tristan B. Velloza Kildaire f71f9e9594 Utils
- Implemented `toBytes(T)(T)`

Utils (unittest)

- Added unit test for the above
2023-09-29 10:50:57 +02:00
Tristan B. Velloza Kildaire 4b88e34d4b CoapPacket
- Typo fix
- Added a `determineOptionType(size_t)`

CoapPacket (unit tests)

- Added a unit test for it
2023-09-29 10:17:46 +02:00
Tristan B. Velloza Kildaire 2fca10a7c4 CoapPacket (unit test)
- Fixed compilation error
2023-09-29 10:13:41 +02:00
Tristan B. Velloza Kildaire ceec2e20e7 CoapPacket
- Documented `getOptionLenType(ubyte)`
- Moved to module-level the two enums `OptionLenType` and `OptionDeltaType`
2023-09-29 10:12:36 +02:00
Tristan B. Velloza Kildaire 3d37dd526f CoapPacket
- Added `OptionDeltaType`
2023-09-29 10:10:51 +02:00
Tristan B. Velloza Kildaire c3bd20415d CoapPacket
- Removed branch which would never be reached
2023-09-29 10:09:31 +02:00
Tristan B. Velloza Kildaire f3522d780d CoapPacket
- Made `OptionLenType` public

CoapPacket (unittest)

- Added unit tests for new static method added
2023-09-29 10:06:23 +02:00
Tristan B. Velloza Kildaire 2f68cc45eb CoapPacket
- Implemented `determineLenType(size_t)`
2023-09-29 10:02:50 +02:00
Tristan B. Velloza Kildaire c39116807e CoapPacket
- Added future test case
2023-09-29 09:29:20 +02:00
Tristan B. Velloza Kildaire d151d7b4a3 CoapPacket (unit test)
- Updated to test with 3 bytes (but NOT 4)
2023-09-29 09:27:46 +02:00
Tristan B. Velloza Kildaire 4ec85231d5 CoapPacket (unit test)
- Added negative case for minimum packet size
2023-09-29 09:27:09 +02:00
Tristan B. Velloza Kildaire 1914f0741a CoapPacket
- Removed flase assertion
2023-09-29 09:16:53 +02:00
Tristan B. Velloza Kildaire 7b888d6b8f CoapPacket
- Added 2 byte option length decoding for 2 byte option delta mode
2023-09-29 09:16:27 +02:00
Tristan B. Velloza Kildaire 9b7859cd8f CoapPacket
- Added 1 byte option length for 2 byte option delta decoding
2023-09-29 09:14:14 +02:00
Tristan B. Velloza Kildaire 1500e44153 CoapPacket
- Added last few stubs for option length decoding
2023-09-29 09:13:05 +02:00
Tristan B. Velloza Kildaire ca89119c13 CoapPacket
- Added 2-byte option length decoding for 1byte option delta encoding
2023-09-29 09:12:01 +02:00
Tristan B. Velloza Kildaire 8c2a4b3812 CoapPacket
- Added decoding of 1-byte option length for 1-byte delta option encoding
2023-09-29 09:10:32 +02:00
Tristan B. Velloza Kildaire dd69be55ff CoapPacket
- Implemented 0-12 option length decoding for 1-byte option delta mode
2023-09-29 09:08:08 +02:00
Tristan B. Velloza Kildaire 16261dff24 CoapPacket
- Added some more stubs
2023-09-29 09:05:16 +02:00
Tristan B. Velloza Kildaire 63b1313dbc CoapPacket
- Added optionlength-14 support for 0-12 option delta mode
2023-09-29 09:01:40 +02:00
Tristan B. Velloza Kildaire a2fff5b389 CoapPacket
- For delta values of 13, extract these option deltas
- Work-in-progress
2023-09-29 08:54:08 +02:00
Tristan B. Velloza Kildaire 1190199905 CoapClient
- Bumped `EXCHANGE_LIFETIME` to 5 seconds (for now)
2023-09-26 19:35:14 +02:00
Tristan B. Velloza Kildaire 481afbb194
Merge pull request #8 from deavmi/feature/exchange_lifetime
Implement EXCHANGE_LIFETIME for message ID generation
2023-09-26 19:33:32 +02:00
Tristan B. Velloza Kildaire 7071c9361f Merge branch 'master' into feature/exchange_lifetime 2023-09-26 19:30:19 +02:00
Tristan B. Velloza Kildaire b4af82599b CoapClient
- Removed `watcherSignal` as unused
2023-09-26 19:29:11 +02:00
Tristan B. Velloza Kildaire 1ff0751900 CoapClient
- Removed old `rollingMid`
- Renamed mutex for `mids`
- Cleaned up imports
2023-09-26 19:27:53 +02:00
Tristan B. Velloza Kildaire 94b9c2d714 CoapClient
- Removed `newMid()`
2023-09-26 19:18:33 +02:00
Tristan B. Velloza Kildaire 4daf3daad0 CoapClient
- Cleaned up `newMid2()`
2023-09-26 19:17:20 +02:00
Tristan B. Velloza Kildaire dc23fbd1a0 CoapClient (unit test)
- Set `EXCHANGE_LIFETIME` high enough to not reuse message IDs
2023-09-26 16:29:51 +02:00
Tristan B. Velloza Kildaire 5edfd4ae36 CoapClient (unittests)
- Unset for now
2023-09-26 15:09:44 +02:00
Tristan B. Velloza Kildaire c2075dd604 CoapClient
- Added `setExchangeLifetime(Duration)`

CoapClient (unittests)

- Manually set the exchange lifetime
2023-09-26 15:09:30 +02:00
Tristan B. Velloza Kildaire f878136746 Utils
- Removed duplicate test
2023-09-26 14:59:19 +02:00
Tristan B. Velloza Kildaire 506a9bb554 Merge branch 'master' into feature/exchange_lifetime 2023-09-26 14:59:00 +02:00
Tristan B. Velloza Kildaire f36f39f2f4 Utils
- Backported from `feature/exchange_lifetime`
2023-09-26 14:53:28 +02:00