Hi ESP_Sprite! Yes thank you for confirming that tx_blocking sends a chuck of data. The problem with using an integer is that my code will not compile...see screenshot at the link below
https://drive.google.com/file/d/1OinDvZ ... sp=sharing
This code works...I have been able to do something similiar but it is not what I need...
Code: Select all
ESP_LOGI(TAG, "Sending data through CdcAcmDevice");
//uint8_t data[] = "254";
//const char* data[] = {"254","!","0","255","0","L","0","0","128","?","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","20","0","0","0","0","195","223"};
//uint8_t data[] = "o";
//THIS WILL NOT COMPILE...
//int this_int = 254;
//ESP_ERROR_CHECK(vcp->tx_blocking(this_int,sizeof(this_int)));
//THIS COMPILES AND WORKS!!! BUT NOT WHAT I NEED....I NEED TO SEND AN INTEGER
int n = 254;
char buffer[16];
sprintf(buffer, "%d", n);
ESP_ERROR_CHECK(vcp->tx_blocking((uint8_t *)buffer, strlen(buffer)));
Here is a screenshot of my end goal...once I understand how to send integers I can build a loop or an array to send the data needed
https://drive.google.com/file/d/1v-gMyJ ... sp=sharing