uart communication esp32

G4ttuz0
Posts: 1
Joined: Mon Feb 19, 2018 11:06 am

uart communication esp32

Postby G4ttuz0 » Wed Mar 07, 2018 12:09 pm

Hello every one, i search all over the net about esp32 code that receive data from UART and put them in a string variable, i couldn't find any thing... :( :(
Please help

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: uart communication esp32

Postby Vader_Mester » Thu Mar 08, 2018 12:46 pm

Hello,

I suggest you delete this thread, and post it again in the General Discussion part of the forum.

Vader[BEN]

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: uart communication esp32

Postby ESP_Sprite » Fri Mar 09, 2018 2:34 am

Moved, news -> general discussion

User avatar
Vader_Mester
Posts: 300
Joined: Tue Dec 05, 2017 8:28 pm
Location: Hungary
Contact:

Re: uart communication esp32

Postby Vader_Mester » Fri Mar 09, 2018 6:22 am

@G4ttuz: You should check this topic: viewtopic.php?f=13&t=284&start=10

Code: Select all

task_t coffeeTask()
{
	while(atWork){
		if(!xStreamBufferIsEmpty(mug)){
			coffeeDrink(mug);
		} else {
			xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
			xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
		}
	}
	vTaskDelete(NULL);
}

Who is online

Users browsing this forum: No registered users and 67 guests