This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Nordic BDS plugin error

My custom profile was being built fine until I added a couple of standard descriptors to a custom service characteristic. Any idea what's going on here?

19:34 - [Code Generator] [I] - Packaging Profile data for the plugin - Nordic Semiconductor nRF5x v.1.2.2
19:34 - [Code Generator] [I] - Loading the plugin Nordic Semiconductor nRF5x v.1.2.2
19:34 - [Code Generator] [I] - Validating the plugin Nordic Semiconductor nRF5x v.1.2.2
19:34 - [Code Generator] [I] - Starting code generation...
19:34 - [Code Generator] [I] - Generating files for service SENSOR DATA SERVICE...
19:34 - [Code Generator] [I] - Generating header file ble_sensor_data_service.h
19:34 - [Code Generator] [I] - An error occurred executing the plugin
19:34 - [Code Generator] [E] - Object has no method 'StructName'
19:34 - [Code Generator] [E] - Bluetooth.D3T.Common.Services.JavaScriptRuntimeException: An error occurred while Invoking the script method - RunPlugin ---> Jint.Runtime.JavaScriptException: Object has no method 'StructName'
   at Jint.Native.Function.ScriptFunctionInstance.Call(JsValue thisArg, JsValue[] arguments)
   at Jint.Engine.Invoke(String propertyName, Object thisObj, Object[] arguments)
   at Jint.Engine.Invoke(String propertyName, Object[] arguments)
   at Bluetooth.D3T.Common.Services.JSIsolatedProgram.Invoke(String method, Object[] paramData)
   --- End of inner exception stack trace ---
   at Bluetooth.D3T.Common.Services.JSIsolatedProgram.<InvokeAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Bluetooth.D3T.Common.Service.PluginEngine.<RunPluginInternal>d__4a.MoveNext()

After deleting the descriptors I now get this error, which I have seen before and can only resolve by deleting and remaking the characteristic:

19:40 - [Code Generator] [I] - Packaging Profile data for the plugin - Nordic Semiconductor nRF5x v.1.2.2
19:40 - [Code Generator] [E] - An error occurred packaging the Profile
19:40 - [Application]   [E] - Value cannot be null.
Parameter name: key
Parents Reply Children
No Data
Related