~aleteoryx/muditaos

ref: 5a8ae75844e31970e5665257aaff8d9f558ab06a muditaos/test/phone_send_sms.py -rw-r--r-- 659 bytes
5a8ae758 — RobertPiet [EGD-4448] ssettings variable register fixed (#1045) 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python
# Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

# get to sms from desktop and send sms ABC


from harness.uart import connection

# get in sms
connection.send_key(ord('d'), 0.3)
connection.send_key(ord('d'), 0.3)
connection.send_key(ord('\n'), 0.3)

# select newest thread
connection.send_key(ord('\n'), 3)

# add sms ABC
# writeKey(ser, 1, 0.3)
connection.send_key(2, 3) # wait 3 sec -> so that needed assets for text processing would load bufor 100%
connection.send_key(3, 0.5)
connection.send_key(4, 0.5)

#send
connection.send_key(ord('\n'), 0.3)