示例#1
0
    void init() {
        //router.addGateway(&gateway1);
        //router.addGateway(&gateway2);

#ifdef USE_UART_CONN
        gatewayUart.resetTopicsToForward();
        gatewayUart.addTopicsToForward(&counter1,&counter2);

        router.addGateway(&gatewayUart);
#endif

    }
示例#2
0
void WifiGateway::init() {
	gateway1.addTopicsToForward(&imu_data, &light_data, &PowerTopic);
	gateway1.addTopicsToForward(&gyr_data, &xm_data, &TelecommandTopic);
}