This post is going to be the last one covering CWS (for now). We've created an API that lets us view the current system settings, now we just need a way to update them. In this part, I'll go over how to take in and apply new settings. Some Utilities To make our lives easier, … Continue reading CWS: Part 4
Tag: cws
CWS: Part 3
In this part, we'll build out a system configuration page that uses CWS to make changing system settings easier. System Settings Let's create a new class that represents our system configuration. I'm going to save this as SystemSettings.cs: using System; namespace CwsDemo { public class SystemSettings { public const int MaxInputs = 8; public const … Continue reading CWS: Part 3
CWS: Part 2
In this part, I'm going to look at adding route handlers to our CWS server. I'll continue adding to the program we wrote in CWS: Part 1, so grab those files from GitHub if you'd like to follow along. Hello World Let's add a new class named HelloRequest to our project: using System; using Crestron.SimplSharp; … Continue reading CWS: Part 2
CWS: Part 1
One thing that always seems to come up during the C# labs at Masters is Crestron Web Scripting (CWS). I never think about adding this to my own projects, but it is a good way to provide some level of advanced configuration (or even remote control) of the running program. I'm watching the Intermediate C# … Continue reading CWS: Part 1