Return "node.to_socket_addr()"

Dear All,

this methode
node.to_socket_addr() return
and i will used to send message to all the node and i receiver a message from all.

x = sd.sendto(“Hello, router!”, 0, dest)

but i have error:

IndentationError: unindent does not match any outer indentation level

in the forum , i see the destination like this (add-64bit, 0xe8, 0xc105, 0x11)

how can i solved this problem?!


 You do not say specifically, but I am guessing you are using python?

 Python is quite specific in indenting rules as it uses indenting to define code blocks. Where in C you'd include code between { and }

in python it is done with indentation.

For example:

if x == 1:
print ‘hello’
print ‘goodby’

hello will only be printed if the value of x is 1. goodby will be printed regardless of the value of x.

My guess is you have some indentation where you should not.

I use python to program my gateway,
i see this tuto:

print destination
#this mothde return

but they must retrun like this (the_add_64bit, 0xe8, 0xc105, 0x11)