Skip to content

Conversation

@pTommyed
Copy link
Collaborator

No description provided.

@pTommyed pTommyed requested review from m3d and tajgr September 25, 2021 04:26
"robot": {
"modules": {
"wifi": {
"driver": "subt.bluetooth_signal:Bluetooth_signal",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the class name should be CamelCase, i.e. BluetoothSignal ... and I would maybe just use shorter version bluetooth:Bluetooth

"wifi": {
"driver": "subt.bluetooth_signal:Bluetooth_signal",
"in": [],
"out": ["signalStrength"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here on the other hand I would use only small letters with underscores ... and again maybe just shorter signal

def run(self):
while self.is_bus_alive():
signalStrength = bluetooth_scan()
now = self.publish("bluetoothscan", signalStrength)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name in configuration should correspond to your registered (and published) name, i.e. bluetoothscan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants