Your config file looks OK except that you did not put a Jump (that I could find) to either the Player Page or the Guide Page in the Built-in module. I sent you a few questions via email with regard to escient and subnet.
If you are having that kind of interference, you should try different channels and getting that weather module to work.
Put this code into a button, press the button and then review diagnostic log to see what you find.
EscientPowerControl.prototype.closeSocket = function closeSocket() { try { this.socket.close(); } catch (e) { Diagnostics.log('EscientPowerControl close failed. error:' + e); } };
EscientPowerControl.prototype.synchronousConnectAndSendSingleCommand = function synchronousConnectAndSendSingleCommand(command) { try { // create blocking socket if (this.socket) { if (this.socket.connected) this.closeSocket(); this.socket = null; }
this.socket = new TCPSocket(true); if (!this.socket) { Diagnostics.log('EscientPowerControl socket create failed.'); return; }
// wait up to 5 seconds for connect. this.socket.connect(this.ipAddress, 251, 5000); // if connect is successful, we attempt to write the command. this.writeCommand(command); } catch (e) { Diagnostics.log('EscientPowerControl failed. error:' + e); } finally { if (this.socket) { if (this.socket.connected) this.closeSocket(); this.socket = null; } } };
EscientPowerControl.prototype.synchronousConnectAndSendSingleCommandResponse = function synchronousConnectAndSendSingleCommandResponse(command) { try { // create blocking socket if (this.socket) { if (this.socket.connected) this.closeSocket(); this.socket = null; }
this.socket = new TCPSocket(true); if (!this.socket) { Diagnostics.log('EscientPowerControl socket create failed.'); return; }
// wait up to 5 seconds for connect. this.socket.connect(this.ipAddress, 251, 5000); // if connect is successful, we attempt to write the command. this.writeCommand(command); // read a response up to 8KB and wait for 5 seconds. System.print('Beginning read.'); var response = this.socket.read(8192,5000); var wResponse = GUI.widget('RESPONSE'); if (wResponse) wResponse.label = response;