ttn-client-0.2.2.0: TheThingsNetwork client
Safe HaskellNone
LanguageHaskell2010

Data.TTN.Client

Synopsis

Documentation

ttnClient :: TChan Event -> IO () Source #

Try to load config from default locations and start actual client

ttnClientConf :: Conf -> TChan Event -> IO () Source #

Start client with custom Conf config

withTTN :: (Event -> IO a) -> IO b Source #

data Conf Source #

Constructors

Conf 

Instances

Instances details
Eq Conf Source # 
Instance details

Defined in Data.TTN.Client

Methods

(==) :: Conf -> Conf -> Bool #

(/=) :: Conf -> Conf -> Bool #

Show Conf Source # 
Instance details

Defined in Data.TTN.Client

Methods

showsPrec :: Int -> Conf -> ShowS #

show :: Conf -> String #

showList :: [Conf] -> ShowS #

envConfCfg :: IO Conf Source #

Try loading config from location in TTNCFG environment variable or from ~.ttnconfig

parseConfCfg :: FilePath -> IO (Either String Conf) Source #

Try parsing config from given FilePath