7 static uint8_t ETHERNET_MAC[] = {0x90, 0xA2, 0xDA, 0x0F, 0x2B, 0x72 };
9 #define TAG ("ocserver")
11 void ocInitialize () {
12 OIC_LOG(DEBUG, TAG, ("IP addr is:"));
13 OIC_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");