Author Topic: Difference between sceneItem.sendCommand(ON) and sendMiosScene()?  (Read 650 times)

Offline gduprey

  • Beta Testers
  • Full Member
  • *****
  • Posts: 122
  • Karma: +6/-1
Howdy,

Sorry for all the questions -- just trying to make sure I'm doing things in the spirit of the binding.

When executing a Vera scene, is there any difference and/or benefit between

myScene.sendCommand(ON)

and

sendMiosScene(myScene)

From what I've learned so far, I assume they are identical.  If so, perhaps some details on why both exist?

Thanks!!

Gerry
« Last Edit: March 11, 2015, 02:05:43 pm by gduprey »

Offline guessed

  • Moderator
  • Master Member
  • *****
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Difference between sceneItem.sendCommand(ON) and sendMiosScene()?
« Reply #1 on: March 11, 2015, 02:50:36 pm »
They're identical. 

Some may find the former a little odd to read, so I made the latter to make their rules more readable.


I still have a kink to work out, which will permit this to be used:
Code: [Select]
    myScene.sendMiosScene()
but for now, the style you show is fine.