Commit Graph

171 Commits

Author SHA1 Message Date
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
Tristan B. Velloza Kildaire cfd9954ba8 Utils
- Fixed unit test for `flip!(T)(T)`
2023-09-26 14:52:50 +02:00
Tristan B. Velloza Kildaire f01a3b8ab6 Utils
- Removed now-duplicate import
2023-09-26 14:49:30 +02:00
Tristan B. Velloza Kildaire fd9b346be0 Utils
- Backported from `feature/exchange_lifetime`
2023-09-26 14:48:31 +02:00
Tristan B. Velloza Kildaire 0f6e88266b Utils
- Backported from `feature/exchange_lifetime`
2023-09-26 14:47:57 +02:00
Tristan B. Velloza Kildaire d3ceb214fe Utils
- Backported from `feature/exchange_lifetime`
2023-09-26 14:47:15 +02:00
Tristan B. Velloza Kildaire fed84ed876 Utils
- Added missing documentation
2023-09-26 14:46:35 +02:00
Tristan B. Velloza Kildaire 419f7017f8 Utils
- Cleaned up
2023-09-26 14:45:40 +02:00
Tristan B. Velloza Kildaire 7bdeab1107 Utils
- Added missing documentation
2023-09-26 14:42:39 +02:00
Tristan B. Velloza Kildaire 21cc370c14 Utils
- Added missing documentation
2023-09-26 14:42:09 +02:00
Tristan B. Velloza Kildaire edbea382bd Utils
- Added a FIXME
2023-09-26 14:41:06 +02:00
Tristan B. Velloza Kildaire e01081c59a Utils
- Documented method
2023-09-25 22:19:44 +02:00
Tristan B. Velloza Kildaire a8e9debbb3 Utils
- Documented method
2023-09-25 22:18:51 +02:00
Tristan B. Velloza Kildaire 9fb143dfc9 Utils
- Added a unittest for `findNextFree!(T)(T[] values)`
2023-09-25 22:18:07 +02:00
Tristan B. Velloza Kildaire 1986202309 Utils
- Added a unittest for `isPresent!(T)(T[] values, T value)`
2023-09-25 22:16:38 +02:00
Tristan B. Velloza Kildaire 1408a5c202 CoapClient
- Tested
2023-09-25 22:11:20 +02:00
Tristan B. Velloza Kildaire c2b5b64cda CoapClient
- Start the stopwatch
2023-09-25 22:02:50 +02:00
Tristan B. Velloza Kildaire aadd9c320f CoapClient
- Set time to 10 milliseconds (for now)
2023-09-25 22:02:21 +02:00
Tristan B. Velloza Kildaire 3bb0b17353 CoapClient
- Switched to using `newMid2()` in `doRequest(CoapRequestBuilder)`
2023-09-25 21:57:16 +02:00
Tristan B. Velloza Kildaire dd9f5c994f CoapClient
- Fixed bug whereby we didn't register the new found message id
2023-09-25 21:55:51 +02:00
Tristan B. Velloza Kildaire f56210732b CoapClient
- Documented
- `newMid2()` now uses `findNextFree()`
2023-09-25 21:54:07 +02:00
Tristan B. Velloza Kildaire 5cd4cc9a2d Utils
- Added `fineNextFree`() and `isPresent()`
2023-09-25 21:53:57 +02:00
Tristan B. Velloza Kildaire b160ce9e00 Merge branch 'master' into feature/exchange_lifetime 2023-09-25 21:43:48 +02:00
Tristan B. Velloza Kildaire 288b8eed92 - Moved utils module 2023-09-25 21:42:12 +02:00
Tristan B. Velloza Kildaire 41ef2a39cf CoapClient
- Added `EXCHANGE_LIFETIME` and made it very high for starters
2023-09-25 21:41:32 +02:00
Tristan B. Velloza Kildaire ae97035035 CoapClient
- Made `newMid()` private and final
- Added documentation for `newMid()`
2023-09-25 21:19:56 +02:00
Tristan B. Velloza Kildaire b985ad04d9
Merge pull request #7 from deavmi/bugfix/match_with_mid
Match on message ID
2023-09-25 20:13:54 +02:00
Tristan B. Velloza Kildaire 9578ad029f CoapClient (unit tests)
- Added a test for the message IDs
2023-09-25 20:12:41 +02:00
Tristan B. Velloza Kildaire 6c20adfe11 CoapRequest
- Added `getMid()`
2023-09-25 20:06:37 +02:00
Tristan B. Velloza Kildaire 1bc4664e33 UDPMessaging
- `handlePacket(CoapPacket)` now calls `yankRequest()` with the received and decoded `CoapPacket`
2023-09-25 20:05:20 +02:00
Tristan B. Velloza Kildaire 8dad7795ad CoapClient
- `yankRequest(ubyte[])` updated to now be `yankRequestCoapPacket)`
2023-09-25 20:04:48 +02:00
Tristan B. Velloza Kildaire 5b67894b32 CoapClient
- Made the `rollingMid` a `ushort` and fixed the `newMid()` method to return that
2023-09-25 20:00:54 +02:00
Tristan B. Velloza Kildaire 23260860f5 CoapClient
- `doRequest(CoapRequestBuilder)` now sets the message id to the result from `newMid()`
2023-09-25 20:00:11 +02:00
Tristan B. Velloza Kildaire d6eefb3a9b CoapClient
- Implemented `newMid()`  to provide a unique new mid
2023-09-25 19:43:23 +02:00
Tristan B. Velloza Kildaire 4c788b91c3 CoapClient
- Added rolling counter and a lock for it
- Count starts at 0
2023-09-25 19:41:29 +02:00
Tristan B. Velloza Kildaire 1136e384f8 CoapRequest
- Added missing documentation
2023-09-25 17:51:13 +02:00
Tristan B. Velloza Kildaire f2f1f8fece
Merge pull request #6 from deavmi/bugfix/yanked_free
Remove request when matched by messaging layer
2023-09-25 17:23:48 +02:00
Tristan B. Velloza Kildaire 3b7be4073f CoapClient
- Cleaned up
2023-09-25 17:22:52 +02:00