View Single Post
Posts: 43 | Thanked: 33 times | Joined on Dec 2008
#4
@Hurrian
There is no function to do an action when a sms is received. New arrived sms should be send to the computer over a netsocket.

In Symbian m-shell I used this for sending it to the server.
Code:
smsid=sms.receive(0);
print "Getting text";
sms=sms.get(smsid);
if sms[1]#null then
	print "Trying to transfer to PC";
	io.writeln(s,"<Message>" + sms[0] + "<#>"+encoding.toutf8(sms[1])+"</Message>"); 
	print sms[1] + " from " + sms[0] + " sent to PC";
	sms.set(smsid, ["unread":false]);
end;
And for receiving from the server
Code:
text = io.readln(s);
print "Got a stream : " + text ;
if text = "<SendPhoneBook>" then	
	Telefonbuch(s,serverrunning);
end;
A GUI would be easily made with the QT Creator of nokia I think as there just have to be some textfields for IP of the server and maybe restriction settings.

@randomdood
The local phonebook-gsm-contacts would be read out of the device and send to the computer. There the entrys will be displayed to be selected when writing a new sms from your computer.