Python Forum
Insert a variable in a Python > Cellular AT command
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Insert a variable in a Python > Cellular AT command
#2
hello your question isn't clear to me. Does your code output all the write messages to your phone? How are you checking temperature or water pressure?
In this example POWER is set to True:
if POWER == False:
    format_text= 'Alert Message %s'%('No A/C')
    port.write(format_text+'\r\n')
    rcv = port.read(10)
    print rcv
Reply


Messages In This Thread
RE: Insert a variable in a Python > Cellular AT command - by joe_momma - Jul-07-2019, 02:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Insert 10gb csv files into sql table via python mg24 2 2,170 Apr-28-2023, 04:14 PM
Last Post: snippsat
  Python Serial: How to read the complete line to insert to MySQL? sylar 1 943 Mar-21-2023, 10:06 PM
Last Post: deanhystad
  python insert blank line in logger mg24 1 3,161 Nov-02-2022, 08:36 AM
Last Post: snippsat
  store all variable values into list and insert to sql_summary table mg24 3 1,305 Sep-28-2022, 09:13 AM
Last Post: Larz60+
  How to write a part of powershell command as a variable? ilknurg 2 1,237 Jul-26-2022, 11:31 AM
Last Post: ilknurg
  Insert a multiple constant value after header in csv file using python shantanu97 1 1,249 Apr-24-2022, 10:04 AM
Last Post: Pedroski55
  Os command output in variable shows wrong value paulo79 2 1,645 Apr-09-2022, 03:48 PM
Last Post: ndc85430
  How to use a variable in linux command in python code? ilknurg 2 1,720 Mar-14-2022, 07:21 AM
Last Post: ndc85430
  Command output to Variable ironclaw 1 1,876 Aug-26-2021, 06:55 PM
Last Post: bowlofred
  insert row and write to xlsx in python scttfnch 0 2,092 Feb-28-2021, 01:19 AM
Last Post: scttfnch

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020