Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able access bind() for socket communication. #108

Open
AMZzee opened this issue Mar 26, 2021 · 3 comments
Open

not able access bind() for socket communication. #108

AMZzee opened this issue Mar 26, 2021 · 3 comments

Comments

@AMZzee
Copy link

AMZzee commented Mar 26, 2021

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

@H3adcra5h
Copy link

No, you are right, it's not implemented see: https://maixpy.sipeed.com/maixpy/en/api_reference/standard/usocket.html.
Why not is a very good question. I think too much work to implement the whole at command set. The network support is very basic and the esp-at firmware in the esp8285 is very, very old.

@AMZzee
Copy link
Author

AMZzee commented Mar 27, 2021

Hey, thanks for the reply. So, can you tell me if there's any way i can make my maix dock a tcp server?

@H3adcra5h
Copy link

No way yet. The only way is writing your own esp-at library, but it's a lot of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants