Skip to content

Conversation

victorcoman
Copy link

No description provided.

- Before when you pressed the button, it was switching between simulation and real data.
- Now it always works with real data, and the button just toggles the electronic water valve to open or close.

Signed-off-by: Victor Coman <[email protected]>
…nd turns off when closed)

Signed-off-by: Victor Coman <[email protected]>
print("- BLE: Finish request received.")
# Disable BLE interface. This operation does not require a response.
xbee.atcmd(AT_CMD_BT, VALUE_DISABLED)
# xbee.atcmd(AT_CMD_BT, VALUE_DISABLED)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed instead of commented out.

valve_pos = 0

print("- Toggling valve status to '{}'.".format("Open" if valve_pos == 1 else "Closed"))
# set_valve_open(new_status)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unnecessary comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants