Method PostButtonConfig
PostButtonConfig(String, Byte[])
Uploads a button config JSON to the device's themes directory. The device saves it as {resourcesPath}/themes/{profileName}.json and refreshes the available theme profiles list.
Declaration
public TryOptionAsync<HttpResponseMessage> PostButtonConfig(string profileName, byte[] jsonBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | profileName | Profile name (without extension). Path separators and extensions are stripped server-side. |
| System.Byte[] | jsonBytes | The raw button config JSON file bytes. |
Returns
| Type | Description |
|---|---|
| LanguageExt.TryOptionAsync<System.Net.Http.HttpResponseMessage> |