p2p communication data type
Posted: Fri Oct 09, 2020 9:12 am
https://www.bitcraze.io/documentation/r ... s/p2p_api/
I'm testing a p2p code.
I successfully conducted several experiments, but I couldn't send data in float format, so I checked the code and I was able to send only 8-bit data.
I want to change this so that 16-bit data can be sent as well, is it too much for the existing radio communication code?
Does random alteration of the 'P2Ppacket' data type affect the data loss of communication?
I'm testing a p2p code.
I successfully conducted several experiments, but I couldn't send data in float format, so I checked the code and I was able to send only 8-bit data.
I want to change this so that 16-bit data can be sent as well, is it too much for the existing radio communication code?
Code: Select all
static P2PPacket pk;
pk.port = 0;
pk.size = 11;
memcpy(pk.data, "Hello World", 11);
radiolinkSendP2PPacketBroadcast(&pk);