Author Topic: McPlug  (Read 301 times)


  • Administrator
  • Sr. Member
  • *****
  • Posts: 252
  • mc-Things! The opportunities are endless!
  • Location: Canada
    • View Profile
Re: McPlug
« on: May 21, 2017, 09:03:35 am »
it's no good.
The example does work quite well, so I am not sure what the issue is other than that it doesn't do exactly as you wish. I pointed it out as an example of mcPlug code that you can take and modify for your own use

As mentioned, this is not a function that is built-in to the platform at this time. However, as mentioned, there are work-arounds so that you can design your own program. Have you tried to write your own script? Here is the help I provided in my previous reply:
there is no specific function to set an even to happen at a specific time however what you can do is have the device check the time at certain intervals and if the device finds that the time is within your specifications, then you can have the plug turn on or off something.

Have you looked at incorporating the examples your buddy sent over? You may also want to check around the forum as there are some recent questions and discussions about timestamps and their usage.
As mentioned, there are ways to do this. Part of the great thing about the mcThings platform is that there are almost endless ways you can program and modify devices which is why it is nearly impossible to have an example of everything you can do.

That said, if you read the documentation and take the time to putting something together, you can then provide an example script to others if you wish.
Need more mc-Modules, mc-Gateways or other mc-Things? Check out our product page: mc-Development kits are available too!
Check out a live Dashboard using mcThings and Losant! Click here: