Delay in sending AT command
-
Hello,
I'm trying to register to the LTE-M network of T-Mobile. Although this does not work I'am unable to review the AT commands since these are printed with some errors. It might be because of the standard delay but the command on the Pycom documentation is not workiing. The retrun i get from lte.send_at_cmd('AT+COPS=?') is:
+COPS: (2,"20416","20416","20416",7)(1,"NL KPN","NL KPN","20408",7)(1,"vodafone NL","voda NL","20404",7),,(0,1,2,3,4),(0,1,2)
I already tried lte.send_at_cmd('AT+COPS=?', [delay=1000]) this results in an invalid syntax.
Is there a way to adjust the command to be able to see the entire message?
Thanks,
Lars
-
brackets
[]tell that something is optional to specify.
when you decide to specify it you must put it without bracketslte.send_at_cmd('AT+COPS=?', delay=1000) -
Hello,
Thanks for the reaction.
I tried the line but it is not working.

Any more suggestions?
Thanks!
-
i see that in recent firmware it is solved differently. Do not specify delay at all.
@Gijs docs should be fixed i think -
Is there an other soltion to view the entire command?
-
The supposed 'delay' is (and always was) implemented as a timeout. The keyword argument was changed from 'delay' to 'timeout' some time ago to better reflect the functionality.
The AT commands are sent immediately after the function call.I will change the docs to reflect the correct naming
-
@Gijs Don't forget to keep a history of the change in the documentation. E.g. "Before version X, the timeout argument was named delay". There are still plenty of people using lots of different versions for a number of reasons...
-
@Gijs Thanks this solved the problem!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login