You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
385 B
15 lines
385 B
/*
|
|
* Response.cpp
|
|
*
|
|
* Created on: Jul 14, 2021
|
|
* Author: Andreas Berthoud
|
|
*/
|
|
|
|
#include "Response.hpp"
|
|
|
|
Response::Response(uint16_t response_identifier)
|
|
: Notification(), response_identifier(response_identifier) {
|
|
this->payload_ptr[0] = (response_identifier & 0xff00) >> 8;
|
|
this->payload_ptr[1] = response_identifier & 0x00ff;
|
|
this->add_to_payload_size(2);
|
|
}
|
|
|