trying to create a character string for sending to rak811 library

Hi helpful knowledgeable people out there :slight_smile:
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);

Post a complete sketch and a click-able GitHub link to the library.

i am battling

Who is your opponent?

What IS the problem?