CoapPacket

- Documented private method `setTokenLength(ulong tkl)`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-09-30 16:27:28 +02:00
parent 8fa04e7b75
commit 56a82faeba
1 changed files with 10 additions and 0 deletions

View File

@ -232,6 +232,16 @@ public class CoapPacket
}
}
/**
* Attempts to set the token length
* and returns whether or not it
* was a success
*
* Params:
* tkl = the token length
* Returns: `true` if a valid lenght,
* `false` otherwise
*/
private bool setTokenLength(ulong tkl)
{
if(tkl > 15)