Okay, thanks. I don’t have connectivity to the raspberry pi this is running on right now, but will later today and will try it.
I think the problem lies with my accept method still, but I don’t understand how to fix it. Thanks, Susan > On Sep 16, 2016, at 10:32 AM, Dale LaBossiere <[email protected]> wrote: > > I haven’t digested the complete email message yet, but try removing those > three lines before provider.start() and try again. > IotProvider already create/registers those services (described in its > javadoc). I guess I wouldn’t be surprised if these extra additions might > much things up. > > — Dale > >> On Sep 16, 2016, at 1:17 PM, Susan Cline <[email protected]> wrote: >> >> I’ve gotten a step further, but I am still having problems. >> ... >> >> public class RegisterJarExample { >> IotProvider provider = new IotProvider(topology -> new >> IotpDevice(topology, configFile)); >> /* >> * Not sure if I need the next few lines or not ... >> */ >> JsonControlService control = new JsonControlService(); >> provider.getServices().addService(ControlService.class, >> control); >> ApplicationService appService = >> AppService.createAndRegister(provider, provider); >> provider.start(); >> >> logger.info("Here is some info"); >> } >> >> } >
