Announcement

Collapse
No announcement yet.

callback on Portal

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • callback on Portal

    Just starting with the Synapse system.
    Is callback supposed to work with a program loaded in Portal????
    I have a simple test program on Portal and on a remote node. 'callback' works fine on the node but not on the Portal

    On a remote node :
    def pulse2() :
    pulsePin(16,50,True)
    return 99

    On Portal
    def pulse2() :
    print "pulse2 on Portal called"
    return 88

    def tmp1(datum) :
    print 'from : ', datum

    Running rpc(SnapConsoleID, 'callback', 'tmp1', 'pulse2') works fine. Got my LED flashing and tmp1 print 99 on the Event Log as expected

    Running rpc(PortalID, 'callback', 'tmp1', 'pulse2')
    I can see the message "pulse2 on Portal called" in the Event Log
    but tmp1 function is never called.

    Thanks in advance.



Working...
X