Skip to content

How do I activate hostap(hotspot) in my code? #756

Answered by billz
wooseokyourself asked this question in Q&A
Discussion options

You must be logged in to vote

The shell script installers/servicestart.sh is executed when the hotspot is started in the UI. You can execute it with Python by doing something like this:

import os
returncode = os.system('sudo /etc/raspap/hostapd/servicestart.sh')
print("The exit code was: %d" % returncode)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@wooseokyourself
Comment options

@wooseokyourself
Comment options

@billz
Comment options

@wooseokyourself
Comment options

Answer selected by wooseokyourself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants