Skip to content

Releases: mpaperno/TouchPortal-CS-API

v1.47.1.0 - Fixed `TriggerEvent()` and Relaxed `ITouchPortalEventHandler` Implementations

26 Nov 06:15
e1b600c
Compare
Choose a tag to compare

Changes since v1.47.0.0

  • Fixed TriggerEventCommand not being serialized properly for TriggerEvent() method (since v1.47.0). (@2675613b)
  • Changed TriggerEventStates dictionary type to <string, string> because triggerEvent.states values must be of string type. (@dab4d6e0)
  • All ITouchPortalEventHandler event handler method implementations are now optional in plugin code. (@e6f2385d)
  • Exposed ICommandHandler.SendCommand() method as public in TouchPortalClient. (@134268b5)
  • Actual JSON message being sent is now logged (at Debug level) instead of just success status. (@0e954f08)

Full Changelog: v1.47.0.0...v1.47.1.0


The download here contains AnyCPU DLL builds for .NET 6, 7 and 8 with portable debug info and generated documentation XML. The package can also be used via nuget.

v1.47.0 - Updates for Touch Portal API versions 7-10.

25 Nov 09:37
69beeb1
Compare
Choose a tag to compare

Changes since 1.46.1

  • Added TriggerEvent(string eventId, Dictionary<string, object> states) method & TriggerEventCommand type.
  • Added StateListUpdate(string stateId, string[] values) method & StateListUpdateCommand type.
  • Added forceUpdate option to CreateState() method and CreateStateCommand.ForceUpdate member.
  • Added ListChangeEvent.Values property for listChangeEvent incoming message. This is a Dictionary<string, string> type.
  • Added InfoEvent.CurrentPagePathMainDevice and InfoIevent.CurrentPagePathSecondaryDevices properties for info incoming message type.
  • Added PreviousPageName, DeviceIP, DeviceName, and DeviceID to BroadcastEvent incoming message type.
  • Added & improved some documentation comments.

Known issue: the message sent via TriggerEvent() doesn't serialize properly. This is fixed in v1.47.1

v1.46.1

16 Nov 07:11
00e0f41
Compare
Choose a tag to compare

Changes since 1.46.0

  • Updated for .NET8 and dropped .NET5 support.
  • Updated dependencies to 8.x versions (also fixes a security issue in the System.Text.Json library).

v1.46.0 - Optimize JSON message sending

04 Aug 22:16
0c7f0d5
Compare
Choose a tag to compare

##Changes since 1.45.0

  • Optimized TP message output by skipping a byte array copy step for appending the terminating newline after each JSON struct.
  • Published .NET6 and .NET7 builds.

v1.45.0 - Minor changes to long connector ID parser

18 Jul 06:19
bd3962a
Compare
Choose a tag to compare

v 1.45.0

Both changes affect the feature which parses the "Long" connector ID from the short ID notification events into individual key/value fields (see notes for v0.43.0-mp below).

  • Connector data key names are now truncated if TouchPortalOptions.ActionDataIdSeparator is set, just like action/connector data keys.
  • Fix that the "pc_plugin-name_" part wasn't properly stripped from the "actual" connector ID.

Adds parentGroup support for dynamic states (TP API v6)

07 Jul 00:21
f382772
Compare
Choose a tag to compare

See commit notes for details.

Zip file contains Release version assembly DLL.

v0.43.0-mp

18 Apr 00:40
18c9647
Compare
Choose a tag to compare

See commit notes for changes and/or compare with previous tags.