void init() { //router.addGateway(&gateway1); //router.addGateway(&gateway2); #ifdef USE_UART_CONN gatewayUart.resetTopicsToForward(); gatewayUart.addTopicsToForward(&counter1,&counter2); router.addGateway(&gatewayUart); #endif }
void WifiGateway::init() { gateway1.addTopicsToForward(&imu_data, &light_data, &PowerTopic); gateway1.addTopicsToForward(&gyr_data, &xm_data, &TelecommandTopic); }