Strings and String Manipulation
Posted: Mon Sep 23, 2019 4:56 am
Can anyone recommend any online references for strings and string manipulation using ESP-IDF? I'm currently deploying the example ESP-IDF tcp_client program to my ESP32 using the following definitions in the example:
#include <string.h>
…
static const char *payload = "Message from ESP32 ";
…
int err = send(sock, payload, strlen(payload), 0);
and trying to figure out if it's possible to create strings (through concatenations, or += operators) and possibly send these newly created strings (or typecast to chars) across/over the socket.
Thanks for any comments and help.
#include <string.h>
…
static const char *payload = "Message from ESP32 ";
…
int err = send(sock, payload, strlen(payload), 0);
and trying to figure out if it's possible to create strings (through concatenations, or += operators) and possibly send these newly created strings (or typecast to chars) across/over the socket.
Thanks for any comments and help.