kirillzyusko / react-native-wifi-p2p

Library that provide access for working with wi-fi direct (p2p) module in android.
164 stars 32 forks source link

react-native-wifi-p2p connect and send ZPL code to zebra printer via hf2211 wifi serial device server #43

Open Alnsentry opened 3 years ago

Alnsentry commented 3 years ago

Hi, my name is akbar, I have a project to create a mobile application for a zebra printer and I want the zebra mobile application and printer to connect with wifi and the mobile application can send zpl code to the printer via serial device server. can this library handle it?.

kirillzyusko commented 3 years ago

Hey @Alnsentry I didn't work with these devices so I can not assure anything. If you can connect to this printer over WiFi direct connection from Android settings and somehow control your device - then I would say yes, it's possible (but it may require some code modification for specific task). But I can not say anything with 100% confidence in advance.

Alnsentry commented 3 years ago

Thank you, for your response @kirillzyusko . I'll try first whether this works or not

kkureli commented 2 years ago

Thank you, for your response @kirillzyusko . I'll try first whether this works or not

hi, did you try ? does it work ?

Alnsentry commented 2 years ago

Thank you, for your response @kirillzyusko . I'll try first whether this works or not

hi, did you try ? does it work ?

I'm not sure, because at that time I almost reached the deadline, so I changed my method by connecting the application and printer with tcp socket and this work for me

kkureli commented 2 years ago

Thank you, for your response @kirillzyusko . I'll try first whether this works or not

hi, did you try ? does it work ?

I'm not sure, because at that time I almost reached the deadline, so I changed my method by connecting the application and printer with tcp socket and this work for me

thanks for your response. how do you connect to tcp socket?

Alnsentry commented 2 years ago

Thank you, for your response @kirillzyusko . I'll try first whether this works or not

hi, did you try ? does it work ?

I'm not sure, because at that time I almost reached the deadline, so I changed my method by connecting the application and printer with tcp socket and this work for me

thanks for your response. how do you connect to tcp socket?

if you are like me using hf2211 device on your printer you can set it in system settings, use your ap ip to go to system settings http://10.10.100.254/ (for default ap ip) or you can read the user manual https://fccid.io/2ACSV-HF2211/User-Manual/Users-Manual-3485311.pdf