01-21-2020, 10:43 AM
I'm looking through the reference documentation on the SendPUT.
I'm guessing the MEng.System.Runtime.MemBuf is the Body of the message (outbound) for the PUT? This is a memory buffer and I was looking at the docs for that. I'm not sure what would be correct for adding a JSON string to this. Anyone know? I'm trying to write a Macro to send a PUT to the Hue bridge to turn on/off Hue groups.
Code:
SendPUT
(
[In] MEng.System.Runtime.URL URL
, [In] MEng.Card4 WaitFor
, [In] MEng.String Agent
, [In] MEng.String Accept
, [Out] MEng.String RepText
, [Out] MEng.System.Runtime.HTTPClient.LinesList OutHdrLines
, [InOu MEng.String ContType
, [InOu MEng.System.Runtime.MemBuf Content
, [InOu MEng.Card4 ContLen
, [In] MEng.Boolean OutBody
, [In] MEng.System.Runtime.HTTPClient.LinesList InHdrLines
) Returns MEng.Card4;
I'm guessing the MEng.System.Runtime.MemBuf is the Body of the message (outbound) for the PUT? This is a memory buffer and I was looking at the docs for that. I'm not sure what would be correct for adding a JSON string to this. Anyone know? I'm trying to write a Macro to send a PUT to the Hue bridge to turn on/off Hue groups.