I have some simple VB scripts that I distribute with my plugin for calling public functions to obtain values.
The small script below works on windows.
When running this under Linux most is ok except for this line where the plugin is actually called.
The error I receive is:
Has anyone seen this type of issue? I have tried to call other public functions on my plugin and receive a similar error no matter which I try. Any help or pointers to Linux / mono script compatibility tips would be greatly appreciated.
Thanks
Nathan
The small script below works on windows.
Code:
Sub Main(Parm As Object) Dim thermostatName As String = "pump" Dim pluginName As String = "Insteon Thermostat" Dim Instance As String = "" Dim plugin As Object = New HomeSeerAPI.PluginAccess(hs, pluginName, Instance) ' ' TSTAT Query Scripting API ' Dim mode As String = plugin.PluginFunction("GetMode", {thermostatName}) hs.WriteLog(pluginName, "GetMode(" & thermostatName & ") = " & mode) End Sub
Code:
Dim mode As String = plugin.PluginFunction("GetMode", {thermostatName})
07:26:09:3172:[Error]->Compiling script /opt/HomeSeer/scripts/tstat.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
Thanks
Nathan
Comment