This template generates MQTT Python client module. Its purpose is to abstract for the application client technical information about the broker and the names of topics it should use. Instead, it generates a module that provides a set of indent-driven functions that one can invoke to send a message to the application through the message broker.
2
stars
1
forks
source link
Make sure that steps in readme are rendered on a condition of existance #21
So basically if you have send operations then return step about example usage of generated send functions, otherwise you should not render those
Same with receive
Example, if you have this step:
<Text newLines={2}>
4. Example functions on how to receive messages :
</Text>
<Text>
```python
</Text>
<Text>
{receiveFunctionExample(receiveFunctions)}
</Text>
<Text>
</Text>
probably best solution is to create a dedicated react component, and return it only on a condition that there really are receive functions
So basically if you have
send
operations then return step about example usage of generated send functions, otherwise you should not render thoseSame with
receive
Example, if you have this step: