void sendServerHeartbeat() { EasyWiFiController.createAndSendHeartbeatMessages(heartbeatPacketNumber); //increment the packet number if (heartbeatPacketNumber < EasyWiFiConstants.ROLLOVER_PACKET_NUMBER) { heartbeatPacketNumber++; } else { heartbeatPacketNumber = 0; } }