I am working on a wifi project and try to sending an array of floating numbers from arduino to internet via wifi.
the coding of python i written as follow and it's working properly:
1 valueString = urllib.request.urlopen("http://172.16.128.40/pickup_x/").read().decode('utf-8')
2 xlist = valueString
3 xlist = xlist.split( )
4 list2 = [float(x) for x in xlist]
5 npa = np.array(list2)
6 np.save('xdata.npy', npa)
7 xdata = np.load('xdata.npy')
the questions i would like to ask is the format:
What kind of format actually I read in each step ?
and
What is the function of each command ?
i would like to know that more academic, thanks.