feat(scripting): add sprintf2 command and fix prompt-wait race (v0.1.2)

- Add TeraTerm-compatible sprintf2 (C printf formatting into a string var)

- Fix SVOS power-cycle script racing ahead by gating prompt waits behind output-completion markers

- Bump version to 0.1.2; docs and README updates
This commit is contained in:
2026-06-04 14:13:43 +08:00
parent a8dc3d4a7a
commit 7b8f04e1dd
14 changed files with 1454 additions and 37 deletions
+22
View File
@@ -0,0 +1,22 @@
; test-pdu.ttl PDU iPoMan II/III via SNMP
; active session pduconnect / pductrl SNMP PDU
; ip / device / port Stop
ip = "192.168.1.21" ; PDU IP
device = 1 ; PDU iPoMan II/III 1
port = 1 ;
act_off = 0
act_on = 1
;
pduconnect device ip
if result == 0 then
messagebox 'PDU connect failed — 檢查 IP / 網路 / community'
endif
; OFF ON
pductrl device port act_off
pause 3
pductrl device port act_on
pause 3