summaryrefslogtreecommitdiff
path: root/cesar/test_general/integration/cp_beacon-dp/ucco_alone.py
blob: dee643f7548ac4427d3df34f98124d548d80add0 (plain)
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
26
27
28
#!/usr/bin/env python

import sys
sys.path.append('../../../maximus/python/obj');

from interface import *
from string import *
from struct import *

maximus = Maximus()
maximus.init (sys.argv + ['-e', './obj/cp_beacon.elf'])

cco = maximus.create_sta()
#cco.debug()

fc1 = maximus.create_fcall ("fc_cco_set_status")
fc1.set_sta (cco)
fc1.send()

for i in range (1,3):
    fc1 = maximus.create_fcall ("fc_beacon_send_discover_beacon")
    fc1.set_sta (cco)
    fc1.send()
    maximus.wait (3000000)


cco.remove()