misc/soliscloud-inverter-control#4: Switch to checking response code rather than message



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: PoC
Created: 01-Jan-25 12:24



Description

Because the first endpoint I hit included "msg": "success", I assumed it was intended as a representation of status.

However, that's not the case - sometimes it includes modbus output.

There's an attribute code which should be used. The docs give a breakdown of what each means:

Soliscloud API status code meanings



Toggle State Changes

Activity


assigned to @btasker

verified

mentioned in commit 3e857258ddf711b3b4ff5971bc69b47cd713399b

Commit: 3e857258ddf711b3b4ff5971bc69b47cd713399b 
Author: B Tasker                            
                            
Date: 2025-01-01T12:22:12.000+00:00 

Message

fix: rely on code rather than message to assess success (misc/soliscloud-inverter-control#4)

+1 -1 (2 lines changed)