mos aws-iot-setup --aws-region ap-south-1
While executing the above command I am getting the following error
Using port /dev/ttyUSB0
AWS region: ap-south-1
Connecting to the device…
Error: write /dev/ttyUSB0: file already closed
/build/mos-ec1a0S/mos-2.11.0+e5d2712~bionic0/obj-x86_64-linux-gnu/src/cesanta.com/common/go/mgrpc/codec/serial.go:187:
/build/mos-ec1a0S/mos-2.11.0+e5d2712~bionic0/obj-x86_64-linux-gnu/src/cesanta.com/common/go/mgrpc/codec/serial.go:246:
/build/mos-ec1a0S/mos-2.11.0+e5d2712~bionic0/obj-x86_64-linux-gnu/src/cesanta.com/common/go/mgrpc/codec/stream.go:315:
/build/mos-ec1a0S/mos-2.11.0+e5d2712~bionic0/obj-x86_64-linux-gnu/src/cesanta.com/common/go/mgrpc/mgrpc.go:383:
/build/mos-ec1a0S/mos-2.11.0+e5d2712~bionic0/obj-x86_64-linux-gnu/src/cesanta.com/fw/defs/sys/sys_service.go:85:
/build/mos-ec1a0S/mos-2.11.0+e5d2712~bionic0/obj-x86_64-linux-gnu/src/cesanta.com/mos/dev/dev_conn.go:139:
/build/mos-ec1a0S/mos-2.11.0+e5d2712~bionic0/obj-x86_64-linux-gnu/src/cesanta.com/mos/aws/aws.go:326: failed to connect to device
/build/mos-ec1a0S/mos-2.11.0+e5d2712~bionic0/obj-x86_64-linux-gnu/src/cesanta.com/mos/main.go:176: aws-iot-setup failed
Any help?