HI,
1.I am reading gps data from uart2, and trying to send it through HTTP. I am unable to synchronize the events(please comment on synchronization of the events. Can the occurrence of the events be scheduled according to our wish?).
2.I am using same memory buffer for storing gps data and using the same for sending to server via http protocol.So, for every time i send data to server , iam unsubscribing fcm(for uart2).( is there any other method to stop reading data from uart2 till i send data and later fetch it).
like i want to have a wip write event immediately after uart2 writes data in buffer. And if the buffer is empty i want wip write to wait till the uart fills data in buffer. In short synchronisation between wip write and uart read.
i suppose uart overwrites the unread data of http (wip write).so by unsubscribing i won’t read the data gushing in from uart.