Esempio n. 1
0
        /// <summary>
        /// Obtain the device id and encryption key needed for other calls
        /// </summary>
        /// <remarks>Run this method before making any other calls</remarks>
        public async Task AuthorizeAsync()
        {
            if (ClientSocket == null)
            {
                await Start_ClientListenAsync();
            }

            byte[] authorizationPacket = PacketGenerator.GenerateAuthorizationPacket(this);
            await SendAsync(authorizationPacket);
        }