re-arrange array key order by another array
SOF https://stackoverflow.com/questions/348410/sort-an-array-by-keys-based-on-another-array
SOF https://stackoverflow.com/questions/348410/sort-an-array-by-keys-based-on-another-array
sudo synoservicecfg –restart nginx
import serial import time, sys, math #s = serial.Serial(port=’COM6’, baudrate=9600) s = serial.Serial(port=’/dev/ttyACM1’, baudrate=9600) print s #s.write(’text’) c=2000 print c s.write("one") while c>0: res= s.read() if (c % 20 ==…