-
Notifications
You must be signed in to change notification settings - Fork 41
Add more porting instructions to README #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
README.md
Outdated
|
||
| Function Pointer | Description | | ||
| :-: | --- | | ||
| `MQTTAgentMessageSend_t` | A function that sends `MQTTAgentCommand_t *` pointers to be received by `MQTTAgent_CommandLoop`. This can be implemented by pushing to a thread safe queue. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of providing the MQTTAgentCommand_t *
, wouldn't it be easier for a reader to mention just generically that this function enables commands to be sent to a thread-safe queue. Similarly, for the MQTTAgentMessageRecv_t
function, it can say that it enabled commands to be reach from a thread-safe queue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it's better to be more specific here since MQTTAgentCommand_t *
is part of the function prototype, so they will be dealing with it when implementing the function.
d699d33
README.md
Outdated
| :-: | --- | | ||
| `MQTTAgentMessageSend_t` | A function that sends `MQTTAgentCommand_t *` pointers to be received by `MQTTAgent_CommandLoop`. This can be implemented by pushing to a thread safe queue. | | ||
| `MQTTAgentMessageRecv_t` | A function used by `MQTTAgent_CommandLoop` to receive `MQTTAgentCommand_t *` that were sent by API functions. This can be implemented by receiving from a thread safe queue. | | ||
| `MQTTAgentCommandGet_t` | A function that returns a pointer to an allocated `MQTTAgentCommand_t` structure, to be used for information and arguments for a command to be executed by `MQTTAgent_CommandLoop()`. If using dynamic memory, this can be implemented using `malloc()`. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `MQTTAgentCommandGet_t` | A function that returns a pointer to an allocated `MQTTAgentCommand_t` structure, to be used for information and arguments for a command to be executed by `MQTTAgent_CommandLoop()`. If using dynamic memory, this can be implemented using `malloc()`. | | |
| `MQTTAgentCommandGet_t` | A function that returns a pointer to an allocated command object (of `MQTTAgentCommand_t` type) that is executed by the MQTT Agent command loop. If using dynamic memory, this can be implemented using `malloc()`. | |
Description:
Adds a section to the README that describes the platform-dependent features needed when implementing the messaging interface.