Added ethernet functionality to triggerbox (untested)

The period can now be set via socket. Also updated the testing script.