Since you need to reconfigure wireless, search this forum and also look at Wireless configuration [Old OpenWrt Wiki]
You should write as many scripts as you like and run them at the appointed time
Once you identify the scripts / command lines you need to run - simply use the Process object defined in Bridge.h to execute your command on the Linino environment:
Process proc;
proc.begin("/usr/bin/xxx");
proc.addParaneter("abc");
proc.run();
Plenty of examples are available, once you know what commands you need to execute you should be all good! If you are interested in compiling your own code and running native code of your own:
/sbin/uci set network.lan=interface
/sbin/uci set network.lan.proto=dhcp
/sbin/uci delete network.lan.ipaddr
/sbin/uci delete network.lan.netmask
/sbin/uci set wireless.@wifi-iface[0].mode=sta
/sbin/uci set wireless.@wifi-iface[0].ssid=wifi_ssid
/sbin/uci set wireless.@wifi-iface[0].encryption=psk
/sbin/uci set wireless.@wifi-iface[0].key=wifi_password
/sbin/uci commit wireless; /sbin/wifi
/etc/init.d/network restart