/** * Packet data transmission * @param Packet length */ void transmitData(uint8_t i) { #ifdef DEBUG printf("tx: %s\r\n", data_temp); #endif // Transmit the data (need to include the length of the packet and power in dbmW) RFM69_send(data_temp, i, POWER_OUTPUT); //Ensure we are in RX mode RFM69_setMode(RFM69_MODE_RX); }
/** * Packet data transmission * @param Packet length */ void transmitData(uint8_t i) { #ifdef GATEWAY printf("rx: %s|0\r\n", data_temp); #endif #ifdef ZOMBIE_MODE // Transmit the data (need to include the length of the packet and power in dbmW) RFM69_send(data_temp, i, POWER_OUTPUT); RFM69_setMode(RFM69_MODE_SLEEP); #else // Transmit the data (need to include the length of the packet and power in dbmW) RFM69_send(data_temp, i, POWER_OUTPUT); //Ensure we are in RX mode RFM69_setMode(RFM69_MODE_RX); #endif }