Platforms to show: All Mac Windows Linux Cross-Platform

Back to MacHIDMBS class.

MacHIDMBS.DeviceRemoved(result as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event USB MBS USB Plugin 8.7 ✅ Yes ❌ No ❌ No ❌ No
The event called whenever the device is removed.

You need to call connect to install the callback which raises this event.

MacHIDMBS.ReceivedData(data as string, size as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event USB MBS USB Plugin 6.4 ✅ Yes ❌ No ❌ No ❌ No
Data was received and is available for processing.
Example
Sub ReceivedData(data as string, size as Integer)
dim m as MemoryBlock
dim s as string
dim n,i as Integer

// Debug Output data received:

m=data

n=lenb(data)-1
for i=0 to n
s=s+str(m.Byte(i))+" "
next

s=s+"= "+data

System.DebugLog s

End Sub

Event is only called when InstallCallback was used and a connection is open.

Some examples using this event:

The items on this page are in the following plugins: MBS USB Plugin.


The biggest plugin in space...