diff --git a/projects/OneGPIO/arduino_uno/arduino.html b/projects/OneGPIO/arduino_uno/arduino.html
index f1d8ad7..d854af9 100644
--- a/projects/OneGPIO/arduino_uno/arduino.html
+++ b/projects/OneGPIO/arduino_uno/arduino.html
@@ -1474,8 +1474,8 @@
Banyan Demo Station For Arduino Uno
echo = parseInt(echo, 10);
- msg = JSON.stringify({"command": "set_mode_sonar", "trigger": trigger,
- "echo": echo});
+ msg = JSON.stringify({"command": "set_mode_sonar", "trigger_pin": trigger,
+ "echo_pin": echo});
socket.send(msg);
}
diff --git a/projects/OneGPIO/arduino_uno/arduino_gateway.py b/projects/OneGPIO/arduino_uno/arduino_gateway.py
index 8232cda..11e8f67 100644
--- a/projects/OneGPIO/arduino_uno/arduino_gateway.py
+++ b/projects/OneGPIO/arduino_uno/arduino_gateway.py
@@ -300,6 +300,7 @@ async def set_mode_sonar(self, topic, payload):
:param payload: {"command": "set_mode_sonar", "trigger_pin": “PIN”, "tag":”TAG”
"echo_pin": “PIN”"tag":”TAG” }
"""
+
trigger = payload["trigger_pin"]
echo = payload["echo_pin"]
self.pins_dictionary[trigger][GatewayBaseAIO.PIN_MODE] = GatewayBaseAIO.SONAR_MODE
@@ -307,6 +308,8 @@ async def set_mode_sonar(self, topic, payload):
await self.arduino.set_pin_mode_sonar(trigger, echo, cb=self.sonar_callback)
+
+
async def set_mode_stepper(self, topic, payload):
"""
This method establishes either 2 or 4 GPIO pins to be used in stepper
diff --git a/setup.py b/setup.py
index fd6583b..bfbfc1d 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@
setup(
name='python-banyan',
- version='3.5',
+ version='3.6',
packages=[
'python_banyan',
'python_banyan.banyan_base',