I am currently using Sharpcap Pro version 4.0.9478.
I was trying to develop camera driver with ASCOM remote - Alpaca REST API.
It goes great for most of functions except maybe most important: ImageArray
I can see that - after some initial setup of camera - Sharpcap is sending ImageArray GET request with header including 'BASE64HANDOFF': 'true'.
That means - according to what I understand from this document:
https://github.com/ASCOMInitiative/ASCO ... ration.pdf
- it is ready to accept special two step procedure in which I should first response with something like that (example values)
Code: Select all
"Type": 2,
"Rank": 2,
"Dimension0Length": 1280,
"Dimension1Length": 960,
"Dimension2Length": 0,
"ClientTransactionID": 321,
"ServerTransactionID": 123,
"ErrorNumber": 0
"ErrorMessage": ""
After that I would except Sharpcap should request another GET for endpoint imagearraybase64.
Now what I see is that I do not get this second call for imagearraybase64, but after sending my response Sharpcap is giving me error:
Code: Select all
System.NullReferenceException:
in ASCOM.DriverAccess.MemberFactory.CallMember(Int32 memberCode, String memberName, Type[] parameterTypes, Object[] parms) in C:\ASCOM Build\Export\ASCOM.DriverAccess\MemberFactory.cs
in ASCOM.DriverAccess.Camera.get_ImageArray()
Code: Select all
ASCOM.DriverException: CheckDotNetExceptions ASCOM.Remote1.Camera ImageArray Get System.Exception: Unexpected token when deserializing multidimensional array: Integer. Path 'Value[0]', line 1, position 202. (See Inner
Can you help me? I think I may be missing something...