Looks like a header with size and either 'a','b','c' sent across the connection in order to transmit actions.
Could be a struct with an enum instead
e.g. mqttaction {long size;action_type action)
were action_type is a new enum.
Will make the code easier to read/understand
NOTE: above code is just an example - don't need to use same variable names/etc
Looks like a header with size and either 'a','b','c' sent across the connection in order to transmit actions. Could be a struct with an enum instead e.g. mqttaction {long size;action_type action) were action_type is a new enum. Will make the code easier to read/understand NOTE: above code is just an example - don't need to use same variable names/etc