Skip to content

Commit

Permalink
chore: add trace logs
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves authored Feb 20, 2024
1 parent 1c7aed5 commit fe71da1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void onReceive(void *arg, char *data, unsigned short length)

if (strncmp(data, "GET", 3) == 0)
{
TRACE("Status");
TRACE("Status\n");
espconn_send(conn, (uint8 *)httpOK, strlen(httpOK));
vm_systemInformation(&program);
vm_dump(&program);
Expand Down Expand Up @@ -158,7 +158,7 @@ void onReceive(void *arg, char *data, unsigned short length)

void onSend(char *data, int length)
{
// TRACE("send %d bytes, state %d\n", length, conn->state);
TRACE("send %d bytes, state %d\n", length, conn->state);
// printBuffer(data, length);
if (conn->state == ESPCONN_CONNECT || conn->state == ESPCONN_WRITE)
{
Expand All @@ -167,6 +167,7 @@ void onSend(char *data, int length)
}

void onHalt() {
TRACE("halt, state %d\n", length, conn->state);
if (conn->state == ESPCONN_CONNECT)
{
espconn_disconnect(conn);
Expand Down

0 comments on commit fe71da1

Please sign in to comment.