func Action(c *cli.Context) { err := ValidateArgs(c) if err != nil { log.Error(err) cli.ShowAppHelp(c) return } if c.Bool("d") { log.SetLevel(log.DebugLevel) } log.Println("start fuji gateway") fuji.Start(c.String("conf")) }
// publish test to broker on localhost // dummydevice is used as a source of published message func TestConnectLocalPub(t *testing.T) { go fuji.Start("connectlocalpub.ini") time.Sleep(2 * time.Second) }