This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
phone:gammu_send_sms [2011/06/07 09:51] flozz [Send SMS using Python] Minimal code |
phone:gammu_send_sms [2011/06/07 09:56] flozz [Send SMS using Python] |
||
---|---|---|---|
Line 30: | Line 30: | ||
gamu_sm = gammu.StateMachine() | gamu_sm = gammu.StateMachine() | ||
- | gamu_sm.ReadConfig() | + | gamu_sm.ReadConfig() #Read the default config file (~/.gammurc) |
- | gamu_sm.Init() | + | gamu_sm.Init() #Connect to the phone |
- | gamu_sm.SendSMS({ | + | gamu_sm.SendSMS({ #Send the SMS |
'Class': 1, | 'Class': 1, | ||
'Text': "Hello World from my Python script :)", | 'Text': "Hello World from my Python script :)", |