• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

How To Use OnGsmChangeState and TnrGSM.IsBusy To Schedule Bulk SMS Properly.

Started by stacker, December 25, 2012, 01:55:23 am

Previous topic - Next topic

stacker

Can I Know How To Use OnGsmChangeState and TnrGSM.IsBusy To Schedule Bulk SMS Sending Properly?

Thanks. 

Roman Novgorodov

Hello

You can handle following events
OnSmsSent
OnGsmError
for getting result of last sms sending.
If SMS was sent OK you can send next one.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

stacker


stacker

Quote from: stacker on December 27, 2012, 02:15:59 am
OnSmsSent, OnGsmError? Can you give me some example?

Thanks. :D


BTW, does TnrGSM support multithread environment or should I handle by myself using CriticalSection or something else?

Roman Novgorodov

Hello

You can find these event handlers in GSMDemo sample.

nrComm Lib components use separated thread for all asynchronous operations.
But you can choose thread that can be used for call event.
If you will set TnrComm.UseMainThread property in true, all events in related TnrGsm component will be called from main form thread.
Otherwise event handlers will be called from internal nrComm component thread.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

stacker

Sorry, I can't see any hint in gsmdemo about onSmsSent, onGsmError, can you please give me some hint?

Thanks.