MiSchroe / klf-200-api

This module provides a wrapper to the REST API of a KLF-200 interface. Supporting the new API with firmware version 0.2.0.0.71 is in progress.
MIT License
38 stars 2 forks source link

Add additional type guards to be more precise #145

Closed MiSchroe closed 4 months ago

MiSchroe commented 4 months ago

Example: The sendFrameAsync method should be more precise about the return type. If we call it with a GW_REBOOT_REQ it will always return with a GW_REBOOT_CFM.