Beispiel #1
0
void WifiGateway::run() {
	PRINTF("Starting Wifi Init\n");
	wf121.init("YETENet", "yeteyete");
	//wf121.init("PegT13Kabel_EXT","68773295766793263446");
	//wf121.init("PegT13", "XTSg9YHj");
	//wf121.init("ONE E1003", "c438955ffb0e");
	wf121.enableUDPConnection(0xFF01A8C0,12345);
	//wf121.enableUDPConnection(0xFF29A8C0, 12345);
	wf121.getDHCP();
	suspendCallerUntil(END_OF_TIME);
}
Beispiel #2
0
  void run() {
	  uint32_t cnt=0;

	  wf121.init("YETENet","yeteyete");
	  wf121.enableUDPConnection(0xFF01A8C0,12345);

	  while(true) {
		  cnt++;
		  topicCounter1.publish(cnt);
		  AT(NOW() + 100*MILLISECONDS);
	  }
  }