Hi guys
Can you please show me a little example of how should I make an event receiver for a status change?
That would run the vacuum for 15 minutes. Every time a battery event happens, the battery_report function gets called, and so would print out the battery level.def battery_report(level): print(level) vacbot.batteryEvents.subscribe(battery_report) vacbot.run(Clean()) time.sleep(900)
vacbot.batteryEvents.subscribe(battery_report)
--
You received this message because you are subscribed to the Google Groups "sucks-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sucks-users...@googlegroups.com.
To post to this group, send email to sucks...@googlegroups.com.
Visit this group at https://groups.google.com/group/sucks-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/sucks-users/CAKxvhUH%3D9cw381Ts%2BaNx7ywzwifAsne7XWQhme-ZvP5%3DOYM3zQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/sucks-users/75050d88-edfb-b50c-8476-31e166556dfe%40scissor.com.
I was under the wrong impression that the vacbot object knew the initial state of the robot.
Not being that the case, I will just start the gateway and wait.
It will sync the states as soon as the updates start coming.
--
You received this message because you are subscribed to the Google Groups "sucks-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sucks-users...@googlegroups.com.
To post to this group, send email to sucks...@googlegroups.com.
Visit this group at https://groups.google.com/group/sucks-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/sucks-users/bda67a33-7152-4263-b76f-a0a3bc430b2d%40googlegroups.com.