Hi Paul,
Here's the output with DEBUG logging, again for doing Connect+Disconnect x 2.
(Btw, setting the log level only seems to take effect if done after calling .Init?)
[INFO]: **** Starting FSUIPC7 WASM Interface (WAPI) version 0.5.4 (WASM version 0.5.4)
[INFO]: Connected to MSFS
[DEBUG]: Config Data 0: name=FSUIPC_HTBM0, size=1960, type=1
[DEBUG]: Config Data 1: name=FSUIPC_VNAME7, size=8176, type=0
[DEBUG]: Config Data 2: name=FSUIPC_VNAME8, size=8176, type=0
[DEBUG]: Config Data 3: name=FSUIPC_VNAME9, size=8176, type=0
[DEBUG]: Config Data 4: name=FSUIPC_VNAME10, size=8176, type=0
[DEBUG]: Config Data 5: name=FSUIPC_VNAME11, size=8176, type=0
[DEBUG]: Config Data 6: name=FSUIPC_VNAME12, size=784, type=0
[DEBUG]: Config Data 7: name=FSUIPC_lvalues0, size=8192, type=2
[DEBUG]: Config Data 8: name=FSUIPC_lvalues1, size=8192, type=2
[DEBUG]: CDA name FSUIPC_HTBM0 mapped to ID 4 [requestId=16]
[DEBUG]: Client data area created with id=4 (size=1960) [requestID=17]
[DEBUG]: Client data definition added with id=4 (size=1960)
[DEBUG]: CDA 'FSUIPC_HTBM0 with id=4 and definitionId=4 requested
[DEBUG]: CDA name FSUIPC_VNAME7 mapped to ID 5 [requestId=20]
[DEBUG]: Client data area created with id=5 (size=8176) [requestID=21]
[DEBUG]: Client data definition added with id=5 (size=8176)
[DEBUG]: CDA 'FSUIPC_VNAME7 with id=5 and definitionId=5 requested
[DEBUG]: CDA name FSUIPC_VNAME8 mapped to ID 6 [requestId=24]
[DEBUG]: Client data area created with id=6 (size=8176) [requestID=25]
[DEBUG]: Client data definition added with id=6 (size=8176)
[DEBUG]: CDA 'FSUIPC_VNAME8 with id=6 and definitionId=6 requested
[DEBUG]: CDA name FSUIPC_VNAME9 mapped to ID 7 [requestId=28]
[DEBUG]: Client data area created with id=7 (size=8176) [requestID=29]
[DEBUG]: Client data definition added with id=7 (size=8176)
[DEBUG]: CDA 'FSUIPC_VNAME9 with id=7 and definitionId=7 requested
[DEBUG]: CDA name FSUIPC_VNAME10 mapped to ID 8 [requestId=32]
[DEBUG]: Client data area created with id=8 (size=8176) [requestID=33]
[DEBUG]: Client data definition added with id=8 (size=8176)
[DEBUG]: CDA 'FSUIPC_VNAME10 with id=8 and definitionId=8 requested
[DEBUG]: CDA name FSUIPC_VNAME11 mapped to ID 9 [requestId=36]
[DEBUG]: Client data area created with id=9 (size=8176) [requestID=37]
[DEBUG]: Client data definition added with id=9 (size=8176)
[DEBUG]: CDA 'FSUIPC_VNAME11 with id=9 and definitionId=9 requested
[DEBUG]: CDA name FSUIPC_VNAME12 mapped to ID 10 [requestId=40]
[DEBUG]: Client data area created with id=10 (size=784) [requestID=41]
[DEBUG]: Client data definition added with id=10 (size=784)
[DEBUG]: CDA 'FSUIPC_VNAME12 with id=10 and definitionId=10 requested
[DEBUG]: CDA name FSUIPC_lvalues0 mapped to ID 11 [requestId=44]
[DEBUG]: Client data area created with id=11 (size=8192) [requestID=45]
[DEBUG]: Client data definition added with id=11 (size=8192)
[DEBUG]: CDA 'FSUIPC_lvalues0 with id=11 and definitionId=11 requested
[DEBUG]: CDA name FSUIPC_lvalues1 mapped to ID 12 [requestId=48]
[DEBUG]: Client data area created with id=12 (size=8192) [requestID=49]
[DEBUG]: Client data definition added with id=12 (size=8192)
[DEBUG]: CDA 'FSUIPC_lvalues1 with id=12 and definitionId=12 requested
[DEBUG]: EVENT_HVARS_RECEIVED: dwObjectID=0, dwDefineID=4, dwDefineCount=1, dwentrynumber=1, dwoutof=1
[DEBUG]: EVENT_LVARS_RECEIVED: dwObjectID=0, dwDefineID=5, dwDefineCount=1, dwentrynumber=1, dwoutof=1
[DEBUG]: EVENT_LVARS_RECEIVED: dwObjectID=0, dwDefineID=6, dwDefineCount=1, dwentrynumber=1, dwoutof=1
[DEBUG]: EVENT_LVARS_RECEIVED: dwObjectID=0, dwDefineID=7, dwDefineCount=1, dwentrynumber=1, dwoutof=1
[DEBUG]: EVENT_LVARS_RECEIVED: dwObjectID=0, dwDefineID=8, dwDefineCount=1, dwentrynumber=1, dwoutof=1
[DEBUG]: EVENT_LVARS_RECEIVED: dwObjectID=0, dwDefineID=9, dwDefineCount=1, dwentrynumber=1, dwoutof=1
[DEBUG]: EVENT_LVARS_RECEIVED: dwObjectID=0, dwDefineID=10, dwDefineCount=1, dwentrynumber=1, dwoutof=1
OnVariableListChanged called. LVars visible in MSFSVariableServices: 744
[DEBUG]: Flagging lvar for callback: id=563
[DEBUG]: Flagging lvar for callback: id=575
[DEBUG]: Flagging lvar for callback: id=712
[DEBUG]: Flagging lvar for callback: id=714
[DEBUG]: Flagging lvar for callback: id=718
[DEBUG]: Flagging lvar for callback: id=724
[DEBUG]: Flagging lvar for callback: id=726
[DEBUG]: Flagging lvar for callback: id=735
[DEBUG]: Flagging lvar for callback: id=736
[DEBUG]: Flagging lvar for callback: id=742
[DEBUG]: Flagging lvar for callback: id=743
[DEBUG]: Flagging lvar for callback: id=715
[DEBUG]: Flagging lvar for callback: id=715
[DEBUG]: Flagging lvar for callback: id=715
[DEBUG]: Flagging lvar for callback: id=715
[DEBUG]: Flagging lvar for callback: id=715
[DEBUG]: Flagging lvar for callback: id=715
[DEBUG]: Flagging lvar for callback: id=715
[INFO]: SimConnect_Close done
[INFO]: **** Starting FSUIPC7 WASM Interface (WAPI) version 0.5.4 (WASM version 0.5.4)
[INFO]: Connected to MSFS
[INFO]: SimConnect_Close done
It doesn't even seem to get config data back.
So I've also tried it with TRACE level. Lots more noise, obviously. It starts with:
[INFO]: **** Starting FSUIPC7 WASM Interface (WAPI) version 0.5.4 (WASM version 0.5.4)
[INFO]: Connected to MSFS
[TRACE]: Config data requested...
[TRACE]: SIMCONNECT_RECV_ID_CLIENT_DATA received: EVENT_CONFIG_RECEIVED
[DEBUG]: Config Data 0: name=FSUIPC_HTBM0, size=1960, type=1
[DEBUG]: Config Data 1: name=FSUIPC_VNAME7, size=8176, type=0
[DEBUG]: Config Data 2: name=FSUIPC_VNAME8, size=8176, type=0
then, skipping ahead:
[DEBUG]: Client data area created with id=12 (size=8192) [requestID=49]
[DEBUG]: Client data definition added with id=12 (size=8192)
[DEBUG]: CDA 'FSUIPC_lvalues1 with id=12 and definitionId=12 requested
[TRACE]: Config data updates requested.
[DEBUG]: EVENT_HVARS_RECEIVED: dwObjectID=0, dwDefineID=4, dwDefineCount=1, dwentrynumber=1, dwoutof=1
[TRACE]: HVAR Data: ID=000, name='H:AS3000_MFD_SOFTKEYS_1'
[TRACE]: HVAR Data: ID=001, name='H:AS3000_MFD_SOFTKEYS_10'
[TRACE]: HVAR Data: ID=002, name='H:AS3000_MFD_SOFTKEYS_11'
and finally the log around the disconnect + reconnect:
[TRACE]: Lvar value: ID=741, value=0.000000
[TRACE]: Lvar value: ID=742, value=1.000000
[TRACE]: Lvar value: ID=743, value=1.000000
[INFO]: SimConnect_Close done
[INFO]: **** Starting FSUIPC7 WASM Interface (WAPI) version 0.5.4 (WASM version 0.5.4)
[INFO]: Connected to MSFS
[TRACE]: Config data requested...
[TRACE]: Config data requested...
[TRACE]: Config data requested...
So, whatever config data is being requested isn't getting any replies?