private void refreshTimer_Elapsed(object sender, EventArgs e) { WATR_RefreshRequestArgs request = new WATR_RefreshRequestArgs(this.Address); if (request != null) RefreshRequest(this, request); }
public void ForceRefresh() { WATR_RefreshRequestArgs request = new WATR_RefreshRequestArgs(this.Address); if (request != null) RefreshRequest(this, request); }
//Handle all of the refresh requests here void xbee_RefreshRequest(object sender, WATR_RefreshRequestArgs e) { //Send out a packet to the specified device and generate a sensor record request item packetHandler.TransmitRequest(e.Requestor, customPacker.generateSensorRecordRequest()); }