dbudwin / RoboHome-Web

RoboHome-Web is the codebase that represents the frontend of the RoboHome project. The web interface provides a way to create users, add and manage devices, and an additional way to control devices. :robot: :house_with_garden:
GNU General Public License v3.0
8 stars 17 forks source link

Publish RF device pulse length #131

Closed dbudwin closed 6 years ago

dbudwin commented 6 years ago

Description

When requesting information about an RF device, the pulse length was omitted. This change will now publish an RF device's pulse length. A corresponding change needs to be made to the RoboHome-ESP8266 repository to read the pulse_length value. This addresses issue #126.

Motivation and Context

If a user had a pulse length for an RF device other than the assumed value of 184 (found in the RoboHome-ESP8266 repository) then the device would not be able to be controlled.

How Has This Been Tested?

Test cases were added to check that the pulse length was published. I also ran Insomnia against the API endpoint info to verify that the pulse length now existed in the JSON response.

Screenshots (if appropriate):

Types of changes

Checklist: