Author Topic: How To Use OnGsmChangeState and TnrGSM.IsBusy To Schedule Bulk SMS Properly.  (Read 981 times)

stacker

  • Newbie
  • *
  • Posts: 4
    • View Profile
Can I Know How To Use OnGsmChangeState and TnrGSM.IsBusy To Schedule Bulk SMS Sending Properly?

Thanks. 

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
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

  • Newbie
  • *
  • Posts: 4
    • View Profile
OnSmsSent, OnGsmError? Can you give me some example?

Thanks. :D

stacker

  • Newbie
  • *
  • Posts: 4
    • View Profile
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

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
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

  • Newbie
  • *
  • Posts: 4
    • View Profile
Sorry, I can't see any hint in gsmdemo about onSmsSent, onGsmError, can you please give me some hint?

Thanks.