Edit RTC


$ mgr.py rtc list

$ mgr.py RTC edit my_first_rtc

If Python…

def onExecute(self, ec_id):
print ‘Hello RTC’

Use InPort

def onExecute(self, ec_id):
if self._inIn.isNew():
v = self._inIn.read()
print ‘Received data is ‘, v

Use OutPort

def onExecute(self, ec_id):
v = 1234
self._d_out.data = v
self._outOut.write()