-
Notifications
You must be signed in to change notification settings - Fork 5
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
Python3 #3
Comments
Hi. Really thank you @eried . I'm afraid we do not have any plans to update to python3 soon. We're using the python2.7 library as part of a couple of production projects, and it is running smooth on our raspberry pi zero units. If you manage to do so, please PR back to us because this can be great contribution :) Regards! |
Oh cool, it runs on python2.7 :) on a clone E3372, maybe that old version is good enough :D (porting is not my forte so it would mean a lot of hours googling) small question: when you do the set operator, if you have a global sim (like hologram.io) can that operator be set automatically? thanks |
Yep @eried runs on python2.7 very well. We use the set operator because PodGroup global SIMs are multi-network SIMs (global SIMs): https://www.podgroup.com/products/iot-connectivity/multi-network-iot-sim-cards/ Please refer to your usb dongle AT commands manual to find the "automatic network selection mode". Usually is def set_automatic_network_selection(self, plmn, sleeptime=2):
command = 'AT+COPS=0'
response = self._send_command(command, sleeptime)
if len(response) and response[0] == 'OK':
return True, command, None
elif response is None or response == []:
return True, command, None
else:
self._logger.error('Set operator failed with: ' + str(response))
return False, command, response Would you please fork, add method, test and let us know if that worked for your purposes? PR are welcomed 😄 |
Oh yes, I will try to add stuff. Thanks |
Hola!
Genial encontrar este codigo, estaba tratando hacer algo similar para un modem huawei. Hay planes para actualizarlo a python3? O usan alguna alternativa?
The text was updated successfully, but these errors were encountered: