Skip to content
This repository was archived by the owner on Jan 15, 2018. It is now read-only.

Commit

Permalink
Protocol change and a few enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
Monarch73 committed Nov 25, 2017
1 parent 1aeba6a commit 7020fef
Show file tree
Hide file tree
Showing 11 changed files with 476 additions and 56 deletions.
15 changes: 0 additions & 15 deletions RFBridge/RFBridge/AlexaClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,7 @@ void AlexaClient::Stop()

void AlexaClient::SendUdpResponse(AsyncUDPPacket *udp, int udpPattern)
{
// alt
////uint8_t response[strlen(UDP_TEMPLATE) + 40];
////sprintf_P((char*)response, UDP_TEMPLATE,
//// this->_ip,
//// this->_port,
//// this->_uuid,
//// this->_uuid
////);

////Serial.println("Request answered");
////udp->write(response, strlen((char *)response));

// neu

char buffer[16];
IPAddress ip = WiFi.localIP();
sprintf(buffer, "%d.%d.%d.%d", ip[0], ip[1], ip[2], ip[3]);
Expand All @@ -72,8 +59,6 @@ void AlexaClient::SendUdpResponse(AsyncUDPPacket *udp, int udpPattern)
udpPattern == 1 ? UDP_DEVICE_PATTERN_1 : udpPattern == 2 ? UDP_DEVICE_PATTERN_2 : UDP_DEVICE_PATTERN_3
);

Serial.println((char *)response);

udp->write(response, strlen((char *)response));
}

Expand Down
4 changes: 2 additions & 2 deletions RFBridge/RFBridge/DipSwitches.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ struct dipswitches_struct
char code[6];
char tri1[16];
char tri2[16];
char urlOn[91];
char urlOff[91];
char urlOn[160];
char urlOff[160];
};

#endif
Loading

0 comments on commit 7020fef

Please sign in to comment.