Example #1
0
 def post(self):
     wavelengths = send_sts_command(SocketClient(),
                                    STS_INTERFACE.get('get_wavelengths'))
     response = [float(i) for i in wavelengths[6:-1].split()]
     return response
Example #2
0
 def post(self):
     values = send_sts_command(SocketClient(),
                               STS_INTERFACE.get('get_spectrum'))
     response = [float(i) for i in values[6:-1].split()]
     return response