davisouzaluna / Dpubsub

Dynamic publisher/subscriber implementation in C
MIT License
0 stars 0 forks source link

[FEATURE] Reading server response #4

Closed davisouzaluna closed 1 week ago

davisouzaluna commented 1 month ago

Language: English(US)

Implement/improve what you already have, a function of receiving and understanding the data that the server sends.

Observations:

Linguagem: Portugues(PT/BR)

Implementar/melhorar o que ja tem, uma funcao de receber e entender os dados que o servidor envia.

Observacoes:

davisouzaluna commented 1 week ago

The client communicates with an MQTT server and sends SUBSCRIBE, PUBLISH, ping and UNSUBSCRIBE packets. Last commit that made the changes: 4bfa27e354376ddade5b40b41a8fe179b0bfebd7.

The manipulation of receiving packets has already been done (initial version), by creating a buffer that receives the packets, which, when reading the first bytes, according to the type of packet, performs a given action after deserializing

davisouzaluna commented 1 week ago

Handling of PUBLISH packets in commit: 08c6cfe9607532251e95a13ba94c7e7ceaf2037a

davisouzaluna commented 1 week ago

closing the issue, as the condition was satisfied