Skip to content

Commit 27c6f2a

Browse files
committed
Add Balena.yml
1 parent 33e166e commit 27c6f2a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

balena.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Py Wi-Fi Connect
2+
description: >-
3+
An API for controlling Wi-Fi connections on Balena devices.
4+
version: 0.0.1
5+
type: sw.application
6+
assets:
7+
repository:
8+
type: blob.asset
9+
data:
10+
url: 'https://github.com/maggie0002/balena-py-wifi-connect'
11+
logo:
12+
type: blob.asset
13+
data:
14+
url: 'https://github.com/maggie0002/balena-py-wifi-connect/main/logo.png'

src/common/wifi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ def connect(conn_type=config.type_hotspot,
115115
forget()
116116

117117
# Get the correct config based on type requested
118+
logger.info(f"Adding connection of type {conn_type}")
118119
conn_dict = get_nm_dict(conn_type, ssid, username, password)
119120

120121
try:
121122
Pnm.Settings.AddConnection(conn_dict)
122-
logger.info(f"Adding connection of type {conn_type}")
123123

124124
# Connect
125125
Pnm.NetworkManager.ActivateConnection(get_connection_id(),

0 commit comments

Comments
 (0)