public async Task <bool> ResetAsync(LoRaDevice loRaDevice, uint fcntUp, string gatewayId)
        {
            if (loRaDevice is null)
            {
                throw new ArgumentNullException(nameof(loRaDevice));
            }

            loRaDevice.ResetFcnt();
            return(await InternalSaveChangesAsync(loRaDevice, force : true));
        }
Esempio n. 2
0
        public async Task <bool> ResetAsync(LoRaDevice loRaDevice)
        {
            loRaDevice.ResetFcnt();

            if (await this.InternalSaveChangesAsync(loRaDevice, force: true))
            {
                return(await this.loRaDeviceAPIService.ABPFcntCacheResetAsync(loRaDevice.DevEUI));
            }

            return(false);
        }
Esempio n. 3
0
        public async Task <bool> ResetAsync(LoRaDevice loRaDevice, uint fcntUp, string gatewayId)
        {
            if (loRaDevice is null)
            {
                throw new System.ArgumentNullException(nameof(loRaDevice));
            }

            loRaDevice.ResetFcnt();

            if (await InternalSaveChangesAsync(loRaDevice, force: true))
            {
                return(await this.loRaDeviceAPIService.ABPFcntCacheResetAsync(loRaDevice.DevEUI, fcntUp, gatewayId));
            }

            return(false);
        }
 public async Task <bool> ResetAsync(LoRaDevice loRaDevice, uint fcntUp, string gatewayId)
 {
     loRaDevice.ResetFcnt();
     return(await this.InternalSaveChangesAsync(loRaDevice, force : true));
 }
 public async Task <bool> ResetAsync(LoRaDevice loRaDevice)
 {
     loRaDevice.ResetFcnt();
     return(await this.InternalSaveChangesAsync(loRaDevice, force : true));
 }