7 static uint8_t ETHERNET_MAC[] = {0x90, 0xA2, 0xDA, 0x0F, 0x2B, 0x72 };
9 #define TAG PCF("ocserver")
11 void ocInitialize () {
12 OC_LOG(DEBUG, TAG, PCF("IP addr is:"));
13 OC_LOG_BUFFER(INFO, TAG, (uint8_t*)ipAddr, sizeof(ipAddr));
15 OCInit (NULL, 0, OC_SERVER);
21 Serial.println ("Trying to get an IP addr using DHCP");
22 if (Ethernet.begin(ETHERNET_MAC) == 0) {
23 Serial.println("DHCP failed");
29 Serial.println ("Processing CoAP messages!\n");