Hi helpful knowledgeable people out there
i am trying to convert bits to bytes and then to char* which i need to send over to rak811 library send data command.
i am battling and any help would be helpful.
//create datapacket to send
 diginbyte = (0 << 7) | (0 << 6) | (0 << 5) | (0 << 4) | (0 << 3) | (0 << 2) | (channel_2_diginstate << 1) | channel_1_diginstate;
 byte payload[2];
 payload[0] = byte (diginbyte);
 payload[1] = byte (channel_in_1_value);