Issues running in python script

57 views
Skip to first unread message

Sheena Kiran

unread,
Mar 17, 2022, 2:39:53 AM3/17/22
to CupCarbon Forum
I have 2 IoT nodes, IOT1 and IOT2. IOT1 send messages to IOT2.
Python scipt of IOT1 is 
import time
while node.loop():
        node.send(x)
        x = x+5

Python script of IOT2
import time
while node.loop():
        n = node.bufferSize()
        if n>0:
                x = node.read()
                node.print(x)
        time.sleep(0.01)

But while running the simulation it shows an error. Java.lang.nullpointerexception
How can I resolve it.. Pls help me
Reply all
Reply to author
Forward
0 new messages