Skip to content

Commit

Permalink
0xe6 packet has no response
Browse files Browse the repository at this point in the history
  • Loading branch information
appleguru authored and geohot committed Nov 12, 2017
1 parent 90770e2 commit 3cecacc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions boardesp/webserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,20 +205,20 @@ static void ICACHE_FLASH_ATTR web_rx_cb(void *arg, char *data, uint16_t len) {
espconn_send_string(&web_conn, resp);
espconn_disconnect(conn);
} else if (memcmp(data, "GET /client ", 12) == 0) {
uint32_t recvData[0x11];
spi_comm("\x00\x00\x00\x00\x40\xE6\x00\x00\x00\x00\x40\x00", 0xC, recvData, 0x40);
uint32_t recvData[1];
spi_comm("\x00\x00\x00\x00\x40\xE6\x00\x00\x00\x00\x40\x00", 0xC, recvData, 0);
espconn_send_string(&web_conn, "HTTP/1.0 200 OK\nContent-Type: text/html\n\n"
"client mode request sent over SPI");
espconn_disconnect(conn);
} else if (memcmp(data, "GET /cdp ", 9) == 0) {
uint32_t recvData[0x11];
spi_comm("\x00\x00\x00\x00\x40\xE6\x01\x00\x00\x00\x40\x00", 0xC, recvData, 0x40);
uint32_t recvData[1];
spi_comm("\x00\x00\x00\x00\x40\xE6\x01\x00\x00\x00\x40\x00", 0xC, recvData, 0);
espconn_send_string(&web_conn, "HTTP/1.0 200 OK\nContent-Type: text/html\n\n"
"CDP mode request sent over SPI");
espconn_disconnect(conn);
} else if (memcmp(data, "GET /dcp ", 9) == 0) {
uint32_t recvData[0x11];
spi_comm("\x00\x00\x00\x00\x40\xE6\x02\x00\x00\x00\x40\x00", 0xC, recvData, 0x40);
uint32_t recvData[1];
spi_comm("\x00\x00\x00\x00\x40\xE6\x02\x00\x00\x00\x40\x00", 0xC, recvData, 0);
espconn_send_string(&web_conn, "HTTP/1.0 200 OK\nContent-Type: text/html\n\n"
"DCP mode request sent over SPI");
espconn_disconnect(conn);
Expand Down

0 comments on commit 3cecacc

Please sign in to comment.