{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoTWireless.Types.LoRaWANDeviceProfile where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data LoRaWANDeviceProfile = LoRaWANDeviceProfile'
{
LoRaWANDeviceProfile -> Maybe Natural
classBTimeout :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Natural
classCTimeout :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe [Natural]
factoryPresetFreqsList :: Prelude.Maybe [Prelude.Natural],
LoRaWANDeviceProfile -> Maybe Text
macVersion :: Prelude.Maybe Prelude.Text,
LoRaWANDeviceProfile -> Maybe Natural
maxDutyCycle :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Natural
maxEirp :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Natural
pingSlotDr :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Natural
pingSlotFreq :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Natural
pingSlotPeriod :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Text
regParamsRevision :: Prelude.Maybe Prelude.Text,
LoRaWANDeviceProfile -> Maybe Text
rfRegion :: Prelude.Maybe Prelude.Text,
LoRaWANDeviceProfile -> Maybe Natural
rxDataRate2 :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Natural
rxDelay1 :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Natural
rxDrOffset1 :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Natural
rxFreq2 :: Prelude.Maybe Prelude.Natural,
LoRaWANDeviceProfile -> Maybe Bool
supports32BitFCnt :: Prelude.Maybe Prelude.Bool,
LoRaWANDeviceProfile -> Maybe Bool
supportsClassB :: Prelude.Maybe Prelude.Bool,
LoRaWANDeviceProfile -> Maybe Bool
supportsClassC :: Prelude.Maybe Prelude.Bool,
LoRaWANDeviceProfile -> Maybe Bool
supportsJoin :: Prelude.Maybe Prelude.Bool
}
deriving (LoRaWANDeviceProfile -> LoRaWANDeviceProfile -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LoRaWANDeviceProfile -> LoRaWANDeviceProfile -> Bool
$c/= :: LoRaWANDeviceProfile -> LoRaWANDeviceProfile -> Bool
== :: LoRaWANDeviceProfile -> LoRaWANDeviceProfile -> Bool
$c== :: LoRaWANDeviceProfile -> LoRaWANDeviceProfile -> Bool
Prelude.Eq, ReadPrec [LoRaWANDeviceProfile]
ReadPrec LoRaWANDeviceProfile
Int -> ReadS LoRaWANDeviceProfile
ReadS [LoRaWANDeviceProfile]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LoRaWANDeviceProfile]
$creadListPrec :: ReadPrec [LoRaWANDeviceProfile]
readPrec :: ReadPrec LoRaWANDeviceProfile
$creadPrec :: ReadPrec LoRaWANDeviceProfile
readList :: ReadS [LoRaWANDeviceProfile]
$creadList :: ReadS [LoRaWANDeviceProfile]
readsPrec :: Int -> ReadS LoRaWANDeviceProfile
$creadsPrec :: Int -> ReadS LoRaWANDeviceProfile
Prelude.Read, Int -> LoRaWANDeviceProfile -> ShowS
[LoRaWANDeviceProfile] -> ShowS
LoRaWANDeviceProfile -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LoRaWANDeviceProfile] -> ShowS
$cshowList :: [LoRaWANDeviceProfile] -> ShowS
show :: LoRaWANDeviceProfile -> String
$cshow :: LoRaWANDeviceProfile -> String
showsPrec :: Int -> LoRaWANDeviceProfile -> ShowS
$cshowsPrec :: Int -> LoRaWANDeviceProfile -> ShowS
Prelude.Show, forall x. Rep LoRaWANDeviceProfile x -> LoRaWANDeviceProfile
forall x. LoRaWANDeviceProfile -> Rep LoRaWANDeviceProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LoRaWANDeviceProfile x -> LoRaWANDeviceProfile
$cfrom :: forall x. LoRaWANDeviceProfile -> Rep LoRaWANDeviceProfile x
Prelude.Generic)
newLoRaWANDeviceProfile ::
LoRaWANDeviceProfile
newLoRaWANDeviceProfile :: LoRaWANDeviceProfile
newLoRaWANDeviceProfile =
LoRaWANDeviceProfile'
{ $sel:classBTimeout:LoRaWANDeviceProfile' :: Maybe Natural
classBTimeout =
forall a. Maybe a
Prelude.Nothing,
$sel:classCTimeout:LoRaWANDeviceProfile' :: Maybe Natural
classCTimeout = forall a. Maybe a
Prelude.Nothing,
$sel:factoryPresetFreqsList:LoRaWANDeviceProfile' :: Maybe [Natural]
factoryPresetFreqsList = forall a. Maybe a
Prelude.Nothing,
$sel:macVersion:LoRaWANDeviceProfile' :: Maybe Text
macVersion = forall a. Maybe a
Prelude.Nothing,
$sel:maxDutyCycle:LoRaWANDeviceProfile' :: Maybe Natural
maxDutyCycle = forall a. Maybe a
Prelude.Nothing,
$sel:maxEirp:LoRaWANDeviceProfile' :: Maybe Natural
maxEirp = forall a. Maybe a
Prelude.Nothing,
$sel:pingSlotDr:LoRaWANDeviceProfile' :: Maybe Natural
pingSlotDr = forall a. Maybe a
Prelude.Nothing,
$sel:pingSlotFreq:LoRaWANDeviceProfile' :: Maybe Natural
pingSlotFreq = forall a. Maybe a
Prelude.Nothing,
$sel:pingSlotPeriod:LoRaWANDeviceProfile' :: Maybe Natural
pingSlotPeriod = forall a. Maybe a
Prelude.Nothing,
$sel:regParamsRevision:LoRaWANDeviceProfile' :: Maybe Text
regParamsRevision = forall a. Maybe a
Prelude.Nothing,
$sel:rfRegion:LoRaWANDeviceProfile' :: Maybe Text
rfRegion = forall a. Maybe a
Prelude.Nothing,
$sel:rxDataRate2:LoRaWANDeviceProfile' :: Maybe Natural
rxDataRate2 = forall a. Maybe a
Prelude.Nothing,
$sel:rxDelay1:LoRaWANDeviceProfile' :: Maybe Natural
rxDelay1 = forall a. Maybe a
Prelude.Nothing,
$sel:rxDrOffset1:LoRaWANDeviceProfile' :: Maybe Natural
rxDrOffset1 = forall a. Maybe a
Prelude.Nothing,
$sel:rxFreq2:LoRaWANDeviceProfile' :: Maybe Natural
rxFreq2 = forall a. Maybe a
Prelude.Nothing,
$sel:supports32BitFCnt:LoRaWANDeviceProfile' :: Maybe Bool
supports32BitFCnt = forall a. Maybe a
Prelude.Nothing,
$sel:supportsClassB:LoRaWANDeviceProfile' :: Maybe Bool
supportsClassB = forall a. Maybe a
Prelude.Nothing,
$sel:supportsClassC:LoRaWANDeviceProfile' :: Maybe Bool
supportsClassC = forall a. Maybe a
Prelude.Nothing,
$sel:supportsJoin:LoRaWANDeviceProfile' :: Maybe Bool
supportsJoin = forall a. Maybe a
Prelude.Nothing
}
loRaWANDeviceProfile_classBTimeout :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_classBTimeout :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_classBTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
classBTimeout :: Maybe Natural
$sel:classBTimeout:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
classBTimeout} -> Maybe Natural
classBTimeout) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:classBTimeout:LoRaWANDeviceProfile' :: Maybe Natural
classBTimeout = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_classCTimeout :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_classCTimeout :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_classCTimeout = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
classCTimeout :: Maybe Natural
$sel:classCTimeout:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
classCTimeout} -> Maybe Natural
classCTimeout) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:classCTimeout:LoRaWANDeviceProfile' :: Maybe Natural
classCTimeout = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_factoryPresetFreqsList :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe [Prelude.Natural])
loRaWANDeviceProfile_factoryPresetFreqsList :: Lens' LoRaWANDeviceProfile (Maybe [Natural])
loRaWANDeviceProfile_factoryPresetFreqsList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe [Natural]
factoryPresetFreqsList :: Maybe [Natural]
$sel:factoryPresetFreqsList:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe [Natural]
factoryPresetFreqsList} -> Maybe [Natural]
factoryPresetFreqsList) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe [Natural]
a -> LoRaWANDeviceProfile
s {$sel:factoryPresetFreqsList:LoRaWANDeviceProfile' :: Maybe [Natural]
factoryPresetFreqsList = Maybe [Natural]
a} :: LoRaWANDeviceProfile) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
loRaWANDeviceProfile_macVersion :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Text)
loRaWANDeviceProfile_macVersion :: Lens' LoRaWANDeviceProfile (Maybe Text)
loRaWANDeviceProfile_macVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Text
macVersion :: Maybe Text
$sel:macVersion:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
macVersion} -> Maybe Text
macVersion) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Text
a -> LoRaWANDeviceProfile
s {$sel:macVersion:LoRaWANDeviceProfile' :: Maybe Text
macVersion = Maybe Text
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_maxDutyCycle :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_maxDutyCycle :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_maxDutyCycle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
maxDutyCycle :: Maybe Natural
$sel:maxDutyCycle:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
maxDutyCycle} -> Maybe Natural
maxDutyCycle) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:maxDutyCycle:LoRaWANDeviceProfile' :: Maybe Natural
maxDutyCycle = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_maxEirp :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_maxEirp :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_maxEirp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
maxEirp :: Maybe Natural
$sel:maxEirp:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
maxEirp} -> Maybe Natural
maxEirp) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:maxEirp:LoRaWANDeviceProfile' :: Maybe Natural
maxEirp = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_pingSlotDr :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_pingSlotDr :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_pingSlotDr = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
pingSlotDr :: Maybe Natural
$sel:pingSlotDr:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
pingSlotDr} -> Maybe Natural
pingSlotDr) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:pingSlotDr:LoRaWANDeviceProfile' :: Maybe Natural
pingSlotDr = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_pingSlotFreq :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_pingSlotFreq :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_pingSlotFreq = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
pingSlotFreq :: Maybe Natural
$sel:pingSlotFreq:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
pingSlotFreq} -> Maybe Natural
pingSlotFreq) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:pingSlotFreq:LoRaWANDeviceProfile' :: Maybe Natural
pingSlotFreq = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_pingSlotPeriod :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_pingSlotPeriod :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_pingSlotPeriod = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
pingSlotPeriod :: Maybe Natural
$sel:pingSlotPeriod:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
pingSlotPeriod} -> Maybe Natural
pingSlotPeriod) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:pingSlotPeriod:LoRaWANDeviceProfile' :: Maybe Natural
pingSlotPeriod = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_regParamsRevision :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Text)
loRaWANDeviceProfile_regParamsRevision :: Lens' LoRaWANDeviceProfile (Maybe Text)
loRaWANDeviceProfile_regParamsRevision = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Text
regParamsRevision :: Maybe Text
$sel:regParamsRevision:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
regParamsRevision} -> Maybe Text
regParamsRevision) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Text
a -> LoRaWANDeviceProfile
s {$sel:regParamsRevision:LoRaWANDeviceProfile' :: Maybe Text
regParamsRevision = Maybe Text
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_rfRegion :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Text)
loRaWANDeviceProfile_rfRegion :: Lens' LoRaWANDeviceProfile (Maybe Text)
loRaWANDeviceProfile_rfRegion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Text
rfRegion :: Maybe Text
$sel:rfRegion:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
rfRegion} -> Maybe Text
rfRegion) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Text
a -> LoRaWANDeviceProfile
s {$sel:rfRegion:LoRaWANDeviceProfile' :: Maybe Text
rfRegion = Maybe Text
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_rxDataRate2 :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_rxDataRate2 :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_rxDataRate2 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
rxDataRate2 :: Maybe Natural
$sel:rxDataRate2:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
rxDataRate2} -> Maybe Natural
rxDataRate2) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:rxDataRate2:LoRaWANDeviceProfile' :: Maybe Natural
rxDataRate2 = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_rxDelay1 :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_rxDelay1 :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_rxDelay1 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
rxDelay1 :: Maybe Natural
$sel:rxDelay1:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
rxDelay1} -> Maybe Natural
rxDelay1) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:rxDelay1:LoRaWANDeviceProfile' :: Maybe Natural
rxDelay1 = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_rxDrOffset1 :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_rxDrOffset1 :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_rxDrOffset1 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
rxDrOffset1 :: Maybe Natural
$sel:rxDrOffset1:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
rxDrOffset1} -> Maybe Natural
rxDrOffset1) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:rxDrOffset1:LoRaWANDeviceProfile' :: Maybe Natural
rxDrOffset1 = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_rxFreq2 :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Natural)
loRaWANDeviceProfile_rxFreq2 :: Lens' LoRaWANDeviceProfile (Maybe Natural)
loRaWANDeviceProfile_rxFreq2 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Natural
rxFreq2 :: Maybe Natural
$sel:rxFreq2:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
rxFreq2} -> Maybe Natural
rxFreq2) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Natural
a -> LoRaWANDeviceProfile
s {$sel:rxFreq2:LoRaWANDeviceProfile' :: Maybe Natural
rxFreq2 = Maybe Natural
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_supports32BitFCnt :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Bool)
loRaWANDeviceProfile_supports32BitFCnt :: Lens' LoRaWANDeviceProfile (Maybe Bool)
loRaWANDeviceProfile_supports32BitFCnt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Bool
supports32BitFCnt :: Maybe Bool
$sel:supports32BitFCnt:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
supports32BitFCnt} -> Maybe Bool
supports32BitFCnt) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Bool
a -> LoRaWANDeviceProfile
s {$sel:supports32BitFCnt:LoRaWANDeviceProfile' :: Maybe Bool
supports32BitFCnt = Maybe Bool
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_supportsClassB :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Bool)
loRaWANDeviceProfile_supportsClassB :: Lens' LoRaWANDeviceProfile (Maybe Bool)
loRaWANDeviceProfile_supportsClassB = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Bool
supportsClassB :: Maybe Bool
$sel:supportsClassB:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
supportsClassB} -> Maybe Bool
supportsClassB) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Bool
a -> LoRaWANDeviceProfile
s {$sel:supportsClassB:LoRaWANDeviceProfile' :: Maybe Bool
supportsClassB = Maybe Bool
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_supportsClassC :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Bool)
loRaWANDeviceProfile_supportsClassC :: Lens' LoRaWANDeviceProfile (Maybe Bool)
loRaWANDeviceProfile_supportsClassC = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Bool
supportsClassC :: Maybe Bool
$sel:supportsClassC:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
supportsClassC} -> Maybe Bool
supportsClassC) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Bool
a -> LoRaWANDeviceProfile
s {$sel:supportsClassC:LoRaWANDeviceProfile' :: Maybe Bool
supportsClassC = Maybe Bool
a} :: LoRaWANDeviceProfile)
loRaWANDeviceProfile_supportsJoin :: Lens.Lens' LoRaWANDeviceProfile (Prelude.Maybe Prelude.Bool)
loRaWANDeviceProfile_supportsJoin :: Lens' LoRaWANDeviceProfile (Maybe Bool)
loRaWANDeviceProfile_supportsJoin = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoRaWANDeviceProfile' {Maybe Bool
supportsJoin :: Maybe Bool
$sel:supportsJoin:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
supportsJoin} -> Maybe Bool
supportsJoin) (\s :: LoRaWANDeviceProfile
s@LoRaWANDeviceProfile' {} Maybe Bool
a -> LoRaWANDeviceProfile
s {$sel:supportsJoin:LoRaWANDeviceProfile' :: Maybe Bool
supportsJoin = Maybe Bool
a} :: LoRaWANDeviceProfile)
instance Data.FromJSON LoRaWANDeviceProfile where
parseJSON :: Value -> Parser LoRaWANDeviceProfile
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"LoRaWANDeviceProfile"
( \Object
x ->
Maybe Natural
-> Maybe Natural
-> Maybe [Natural]
-> Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Natural
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> LoRaWANDeviceProfile
LoRaWANDeviceProfile'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ClassBTimeout")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ClassCTimeout")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FactoryPresetFreqsList"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MacVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxDutyCycle")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"MaxEirp")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PingSlotDr")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PingSlotFreq")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"PingSlotPeriod")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RegParamsRevision")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RfRegion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RxDataRate2")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RxDelay1")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RxDrOffset1")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RxFreq2")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Supports32BitFCnt")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SupportsClassB")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SupportsClassC")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SupportsJoin")
)
instance Prelude.Hashable LoRaWANDeviceProfile where
hashWithSalt :: Int -> LoRaWANDeviceProfile -> Int
hashWithSalt Int
_salt LoRaWANDeviceProfile' {Maybe Bool
Maybe Natural
Maybe [Natural]
Maybe Text
supportsJoin :: Maybe Bool
supportsClassC :: Maybe Bool
supportsClassB :: Maybe Bool
supports32BitFCnt :: Maybe Bool
rxFreq2 :: Maybe Natural
rxDrOffset1 :: Maybe Natural
rxDelay1 :: Maybe Natural
rxDataRate2 :: Maybe Natural
rfRegion :: Maybe Text
regParamsRevision :: Maybe Text
pingSlotPeriod :: Maybe Natural
pingSlotFreq :: Maybe Natural
pingSlotDr :: Maybe Natural
maxEirp :: Maybe Natural
maxDutyCycle :: Maybe Natural
macVersion :: Maybe Text
factoryPresetFreqsList :: Maybe [Natural]
classCTimeout :: Maybe Natural
classBTimeout :: Maybe Natural
$sel:supportsJoin:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supportsClassC:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supportsClassB:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supports32BitFCnt:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:rxFreq2:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDrOffset1:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDelay1:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDataRate2:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rfRegion:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:regParamsRevision:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:pingSlotPeriod:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:pingSlotFreq:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:pingSlotDr:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:maxEirp:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:maxDutyCycle:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:macVersion:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:factoryPresetFreqsList:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe [Natural]
$sel:classCTimeout:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:classBTimeout:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
classBTimeout
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
classCTimeout
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Natural]
factoryPresetFreqsList
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
macVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxDutyCycle
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxEirp
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
pingSlotDr
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
pingSlotFreq
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
pingSlotPeriod
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
regParamsRevision
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
rfRegion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
rxDataRate2
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
rxDelay1
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
rxDrOffset1
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
rxFreq2
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
supports32BitFCnt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
supportsClassB
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
supportsClassC
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
supportsJoin
instance Prelude.NFData LoRaWANDeviceProfile where
rnf :: LoRaWANDeviceProfile -> ()
rnf LoRaWANDeviceProfile' {Maybe Bool
Maybe Natural
Maybe [Natural]
Maybe Text
supportsJoin :: Maybe Bool
supportsClassC :: Maybe Bool
supportsClassB :: Maybe Bool
supports32BitFCnt :: Maybe Bool
rxFreq2 :: Maybe Natural
rxDrOffset1 :: Maybe Natural
rxDelay1 :: Maybe Natural
rxDataRate2 :: Maybe Natural
rfRegion :: Maybe Text
regParamsRevision :: Maybe Text
pingSlotPeriod :: Maybe Natural
pingSlotFreq :: Maybe Natural
pingSlotDr :: Maybe Natural
maxEirp :: Maybe Natural
maxDutyCycle :: Maybe Natural
macVersion :: Maybe Text
factoryPresetFreqsList :: Maybe [Natural]
classCTimeout :: Maybe Natural
classBTimeout :: Maybe Natural
$sel:supportsJoin:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supportsClassC:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supportsClassB:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supports32BitFCnt:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:rxFreq2:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDrOffset1:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDelay1:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDataRate2:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rfRegion:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:regParamsRevision:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:pingSlotPeriod:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:pingSlotFreq:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:pingSlotDr:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:maxEirp:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:maxDutyCycle:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:macVersion:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:factoryPresetFreqsList:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe [Natural]
$sel:classCTimeout:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:classBTimeout:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
classBTimeout
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
classCTimeout
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Natural]
factoryPresetFreqsList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
macVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxDutyCycle
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxEirp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
pingSlotDr
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
pingSlotFreq
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
pingSlotPeriod
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
regParamsRevision
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
rfRegion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
rxDataRate2
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
rxDelay1
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
rxDrOffset1
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
rxFreq2
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
supports32BitFCnt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
supportsClassB
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
supportsClassC
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
supportsJoin
instance Data.ToJSON LoRaWANDeviceProfile where
toJSON :: LoRaWANDeviceProfile -> Value
toJSON LoRaWANDeviceProfile' {Maybe Bool
Maybe Natural
Maybe [Natural]
Maybe Text
supportsJoin :: Maybe Bool
supportsClassC :: Maybe Bool
supportsClassB :: Maybe Bool
supports32BitFCnt :: Maybe Bool
rxFreq2 :: Maybe Natural
rxDrOffset1 :: Maybe Natural
rxDelay1 :: Maybe Natural
rxDataRate2 :: Maybe Natural
rfRegion :: Maybe Text
regParamsRevision :: Maybe Text
pingSlotPeriod :: Maybe Natural
pingSlotFreq :: Maybe Natural
pingSlotDr :: Maybe Natural
maxEirp :: Maybe Natural
maxDutyCycle :: Maybe Natural
macVersion :: Maybe Text
factoryPresetFreqsList :: Maybe [Natural]
classCTimeout :: Maybe Natural
classBTimeout :: Maybe Natural
$sel:supportsJoin:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supportsClassC:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supportsClassB:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:supports32BitFCnt:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Bool
$sel:rxFreq2:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDrOffset1:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDelay1:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rxDataRate2:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:rfRegion:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:regParamsRevision:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:pingSlotPeriod:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:pingSlotFreq:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:pingSlotDr:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:maxEirp:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:maxDutyCycle:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:macVersion:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Text
$sel:factoryPresetFreqsList:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe [Natural]
$sel:classCTimeout:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
$sel:classBTimeout:LoRaWANDeviceProfile' :: LoRaWANDeviceProfile -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ClassBTimeout" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
classBTimeout,
(Key
"ClassCTimeout" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
classCTimeout,
(Key
"FactoryPresetFreqsList" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Natural]
factoryPresetFreqsList,
(Key
"MacVersion" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
macVersion,
(Key
"MaxDutyCycle" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxDutyCycle,
(Key
"MaxEirp" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxEirp,
(Key
"PingSlotDr" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
pingSlotDr,
(Key
"PingSlotFreq" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
pingSlotFreq,
(Key
"PingSlotPeriod" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
pingSlotPeriod,
(Key
"RegParamsRevision" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
regParamsRevision,
(Key
"RfRegion" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
rfRegion,
(Key
"RxDataRate2" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
rxDataRate2,
(Key
"RxDelay1" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
rxDelay1,
(Key
"RxDrOffset1" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
rxDrOffset1,
(Key
"RxFreq2" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
rxFreq2,
(Key
"Supports32BitFCnt" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
supports32BitFCnt,
(Key
"SupportsClassB" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
supportsClassB,
(Key
"SupportsClassC" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
supportsClassC,
(Key
"SupportsJoin" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
supportsJoin
]
)