SUN2000 Modbus test Sample code that uses the j2mod library to query Huawei SUN2000 inverter via TCP modbus. Confirmed working with SUN2000-KTL10-M1, LUNA2000-S0 and DTSU666.