MaixPy-v1 icon indicating copy to clipboard operation
MaixPy-v1 copied to clipboard

socket.bind() does not exist

Open AMZzee opened this issue 4 years ago • 1 comments

I am trying to create a tcp server from my maix dock m1w, inorder to communicate with my android app(i.e the client). To do so i need to bind my host ip and port address to the socket.

When i run:

import socket s=socket.socket() s.bind((ip_addr,portno))

i get the following error: AttributeError: 'socket' object has no attribute 'bind'

Can someone please tell me, why there's no bind function in the firmware? or am i going wrong somewhere? would appreciate any help. Thank you.

Please complete the following information

  • IDE version: 0.2.5
  • Firmware version: maixpy_v0.6.2_32_gf1cc361a5_openmv_kmodel_v4_with_ide_support
  • Board: Maix Dock m1w
  • OS: Windows 10

AMZzee avatar Mar 26 '21 13:03 AMZzee

https://github.com/sipeed/MaixPy/issues/315

junhuanchen avatar Apr 25 '21 10:04 junhuanchen