コード例 #1
0
    void sendServerHeartbeat()
    {
        EasyWiFiController.createAndSendHeartbeatMessages(heartbeatPacketNumber);

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