Add 16-bit value at the end of the buffer Adds 16-bit value in little endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Add (8-bit) byte at the end of the buffer Increments the data length of the buffer to account for more data at the end.
Remove and convert 16 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 16-bit little endian data.
Remove a 8-bit value from the beginning of the buffer Same idea as with net_buf_simple_pull(), but a helper for operating on 8-bit values.
Initialize a model message. Clears the message buffer contents, and encodes the given opcode. The message buffer will be ready for filling in payload data.
Copy given number of bytes from memory to the end of the buffer Increments the data length of the buffer to account for more data at the end.
This function releases the memory allocated for the outgoing message.
Send an Access Layer message.
Prepare data to be added at the end of the buffer Increments the data length of a buffer to account for more data at the end.
Remove data from the beginning of the buffer. Removes data from the beginning of the buffer by modifying the data pointer and buffer length.
Remove data from the beginning of the buffer. Removes data from the beginning of the buffer by modifying the data pointer and buffer length.
Remove and convert 16 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 16-bit big endian data.
Reset buffer Reset buffer data so it can be reused for other purposes.
Push 8-bit value to the beginning of the buffer Adds 8-bit value the beginning of the buffer.
Add 16-bit value at the end of the buffer Adds 16-bit value in big endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Add 32-bit value at the end of the buffer Adds 32-bit value in little endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Push data to the beginning of the buffer. Modifies the data pointer and buffer length to account for more data in the beginning of the buffer.
Add 32-bit value at the end of the buffer Adds 32-bit value in big endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Check buffer tailroom. Check how much free space there is at the end of the buffer.
Remove and convert 32 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 32-bit little endian data.
Remove and convert 32 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 32-bit big endian data.
Initialize buffer with the given headroom. The buffer is not expected to contain any data when this API is called.
Restore the parsing state of a buffer. Restores the parsing state of a buffer from a state previously stored by net_buf_simple_save().
Save the parsing state of a buffer. Saves the parsing state of a buffer so it can be restored later.
Push 24-bit value to the beginning of the buffer Adds 24-bit value in big endian format to the beginning of the buffer.
Clone buffer state, using the same data buffer. Initializes a buffer to point to the same data as an existing buffer. Allows operations on the same data without altering the length and offset of the original.
Add 24-bit value at the end of the buffer Adds 24-bit value in little endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Check if the msg received by client model is a publish msg or not
Check buffer headroom. Check how much free space there is in the beginning of the buffer. buf A valid pointer on a buffer
Initialize a net_buf_simple object with data. Initialized buffer object with external data.
Higher level functionality
Push 16-bit value to the beginning of the buffer Adds 16-bit value in little endian format to the beginning of the buffer.
Remove and convert 24 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 24-bit little endian data.
Get the tail pointer for a buffer. Get a pointer to the end of the data in a buffer.
Initialize a net_buf_simple object. This needs to be called after creating a net_buf_simple object using the NET_BUF_SIMPLE macro.
Push 24-bit value to the beginning of the buffer Adds 24-bit value in little endian format to the beginning of the buffer.
Push 32-bit value to the beginning of the buffer Adds 32-bit value in little endian format to the beginning of the buffer.
Push 32-bit value to the beginning of the buffer Adds 32-bit value in big endian format to the beginning of the buffer.
Push 48-bit value to the beginning of the buffer Adds 48-bit value in little endian format to the beginning of the buffer.
Push 48-bit value to the beginning of the buffer Adds 48-bit value in big endian format to the beginning of the buffer.
Push 64-bit value to the beginning of the buffer Adds 64-bit value in little endian format to the beginning of the buffer.
Push 64-bit value to the beginning of the buffer Adds 64-bit value in big endian format to the beginning of the buffer.
Remove and convert 24 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 24-bit big endian data.
Remove and convert 48 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 48-bit little endian data.
Remove and convert 48 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 48-bit big endian data.
Remove and convert 64 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 64-bit little endian data.
Remove and convert 64 bits from the beginning of the buffer. Same idea as with net_buf_simple_pull(), but a helper for operating on 64-bit big endian data.
Add 24-bit value at the end of the buffer Adds 24-bit value in big endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Add 48-bit value at the end of the buffer Adds 48-bit value in little endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Add 48-bit value at the end of the buffer Adds 48-bit value in big endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Add 64-bit value at the end of the buffer Adds 64-bit value in little endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
Add 64-bit value at the end of the buffer Adds 64-bit value in big endian format at the end of buffer. Increments the data length of a buffer to account for more data at the end.
This function handles the received PB-ADV PDUs.
This function handles the received PB-GATT provision PDUs.
This function parses the received unprovisioned device beacon advertising packets, and if checked, starts to provision this device using PB-ADV bearer.