compiling c structs in c++ program
Posted: Mon Mar 18, 2019 12:09 am
I am getting the following warning which results in a compile error:
I am trying to initialize a struct for doing an OTA..sorry, unimplemented: non-trivial designated initializers not supported
Code: Select all
esp_tls_cfg_t cfg = {
.cacert_pem_buf = (const unsigned char *)aws_root_ca_pem,
.cacert_pem_bytes = (unsigned int)(strlen(aws_root_ca_pem)+1),
.non_block = true,
.alpn_protos = "\x02h2",
};