Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///do ****.c
- Hello_ack_message_t parse_recieved_hello_ack(uint8_t * recieved_data, uint8_t size1){
- hello_ack_message.command_id = recieved_data[0];
- memcpy(&hello_ack_message.address, recieved_data + 1, 2);
- memcpy(&hello_ack_message.sleep_period, recieved_data + 3, 2);
- memcpy(&hello_ack_message.reserved, recieved_data + 5, 2);
- return hello_ack_message;
- }
- ///do *****.h
- Hello_ack_message_t parse_recieved_hello_ack(uint8_t * recieved_data, uint8_t size);
- ///struktura
- typedef struct Hello_ack_message_t {
- uint8_t command_id;
- uint16_t address;
- uint16_t sleep_period;
- uint16_t reserved;
- }Hello_ack_message_t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement