Hi,
Im using a python scrit to read incoming sms from a usb gsm modem ( for now i cant put to work in b4a ) in the py i have this to creat a " tunel"
How can i "catch" the data to a b4a and display it?
Thankz
Im using a python scrit to read incoming sms from a usb gsm modem ( for now i cant put to work in b4a ) in the py i have this to creat a " tunel"
B4X:
import sys
from socket import socket, AF_INET, SOCK_DGRAM
SERVER_IP = '127.0.0.1'
PORT_NUMBER = 5000
SIZE = 1024
print ("Test client sending packets to IP {0}, via port {1}\n".format(SERVER_IP, PORT_NUMBER))
mySocket = socket( AF_INET, SOCK_DGRAM )
while True:
mySocket.sendto('cool',(SERVER_IP,PORT_NUMBER))
sys.exit()
How can i "catch" the data to a b4a and display it?
Thankz
Last edited: