I’m wanting to do some simple 2 way IO between my PC and Spider via USB.
Have read a number of codeshare and wiki items on this - e.g. GHI Electronics – Where Hardware Meets Software
but the USBC_CDC class has been deprecated in the premium library in v4.2.
Is there a replacement available that will present as a com port on the PC - i.e. trying to keep the PC side as simple as possible as well.
Creates USB Client CDC (Virtual COM Port).
Namespace: GHI.Premium.USBClient
Assembly: GHI.Premium.USBClient (in GHI.Premium.USBClient.dll) Version: 4.2.7.0 (4.2.7.0)
C#
[ObsoleteAttribute(“Not Supported”)]
public class USBC_CDC
And my code (below):
using GHI.Premium.USBClient;
namespace GadgeteerApp1
{
public partial class Program
{
USBC_CDC cdc;
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
cdc = USBClientController.StandardDevices.StartCDC();
emits the warning:
Warning 1 ‘GHI.Premium.USBClient.USBC_CDC’ is obsolete: ‘Not Supported’ C:\Users\robmaw\AppData\Local\Temporary Projects\GadgeteerApp1\Program.cs 20 18 GadgeteerApp1
is this a warning I can ignore? - i.e. it is not complaining about the StartCDC() call, just the variable declaration of cdc as a USBC_CDC.