Title: didUpdate function doesn't get all subscribed services · Issue #10 · STMicroelectronics/BlueSTSDK_iOS · GitHub
Open Graph Title: didUpdate function doesn't get all subscribed services · Issue #10 · STMicroelectronics/BlueSTSDK_iOS
X Title: didUpdate function doesn't get all subscribed services · Issue #10 · STMicroelectronics/BlueSTSDK_iOS
Description: Hi Folks, Thanks for such a great BlueTooth SDK, I appreciated for your hard work. I am stuck at the point where I don't get BlueSTSDKFeatureMemsSensorFusion feature values in did update function. I am subscribing for two service one is ...
Open Graph Description: Hi Folks, Thanks for such a great BlueTooth SDK, I appreciated for your hard work. I am stuck at the point where I don't get BlueSTSDKFeatureMemsSensorFusion feature values in did update function. ...
X Description: Hi Folks, Thanks for such a great BlueTooth SDK, I appreciated for your hard work. I am stuck at the point where I don't get BlueSTSDKFeatureMemsSensorFusion feature values in did update functi...
Opengraph URL: https://github.com/STMicroelectronics/BlueSTSDK_iOS/issues/10
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"didUpdate function doesn't get all subscribed services","articleBody":"Hi Folks,\r\n\r\nThanks for such a great BlueTooth SDK, I appreciated for your hard work.\r\n\r\nI am stuck at the point where I don't get `BlueSTSDKFeatureMemsSensorFusion` feature values in did update function.\r\n\r\nI am subscribing for two service one is for battery status `BlueSTSDKFeatureBattery` and another one for `BlueSTSDKFeatureMemsSensorFusion`\r\n\r\nThis is how i am subscribing:\r\n\r\n``` self.blueSTSDKFeatureMemsSensorFusion = node.getFeatureOfType(BlueSTSDKFeatureMemsSensorFusion.self) as? BlueSTSDKFeatureAutoConfigurable\r\n if let feature = self.blueSTSDKFeatureMemsSensorFusion {\r\n node.enableNotification(feature)\r\n feature.add(self)\r\n }\r\n\r\n self.blueSTSDKFeatureBattery = node.getFeatureOfType(BlueSTSDKFeatureBattery.self) as? BlueSTSDKFeatureBattery\r\n if let service = self.blueSTSDKFeatureBattery {\r\n node.enableNotification(service)\r\n service.add(self)\r\n service.readCapacity()\r\n}```\r\n \r\nin my did update function I get the first 2-3 value for `BlueSTSDKFeatureMemsSensorFusion` feature and after that I am just receiving all the values for `BlueSTSDKFeatureBattery`. i tried to move the device but it's just keep posting me the value for the battery\r\n\r\n func didUpdate(_ feature: BlueSTSDKFeature, sample: BlueSTSDKFeatureSample) {\r\n if feature == blueSTSDKFeatureBattery {\r\n print(\"battery value\")\r\n }\r\n \r\n if feature == blueSTSDKFeatureMemsSensorFusion {\r\n print(\"read sensor value\")\r\n }\r\n\r\n }\r\n\r\ni am not sure why it's happening, is there anything we have to tell the node to enable multiple subscription etc? i am stuck for past 2 days please help me her.\r\n","author":{"url":"https://github.com/anurag1991","@type":"Person","name":"anurag1991"},"datePublished":"2020-12-17T15:01:44Z","url":"https://github.com/STMicroelectronics/BlueSTSDK_iOS/issues/10"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8ae4ad4e-675b-26ec-9386-9654e5514f48 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBC0:2EA7B6:2ABF9C6:38910B2:6B056DF4 |
| html-safe-nonce | b2ece9967a98ac49cdbd1a0ef63a9f6b891891b3a217d933756698427259b72e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkMwOjJFQTdCNjoyQUJGOUM2OjM4OTEwQjI6NkIwNTZERjQiLCJ2aXNpdG9yX2lkIjoiMjgyMTE2OTk4NDgwMDM4NjU0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a5be7f8cfb5dd4f79ee8e287b65425ca0e87f8524bf7704c644ac325003c519e |
| hovercard-subject-tag | issue:770120588 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/STMicroelectronics/BlueSTSDK_iOS/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/93ddd76c2ef26a2d46ea713a0eb2b483016839fc6d912be28eaf896d125b613f/STMicroelectronics/BlueSTSDK_iOS/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/93ddd76c2ef26a2d46ea713a0eb2b483016839fc6d912be28eaf896d125b613f/STMicroelectronics/BlueSTSDK_iOS/issues/10 |
| og:image:alt | Hi Folks, Thanks for such a great BlueTooth SDK, I appreciated for your hard work. I am stuck at the point where I don't get BlueSTSDKFeatureMemsSensorFusion feature values in did update function. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anurag1991 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c |
| turbo-cache-control | no-preview |
| go-import | github.com/STMicroelectronics/BlueSTSDK_iOS git https://github.com/STMicroelectronics/BlueSTSDK_iOS.git |
| octolytics-dimension-user_id | 10744877 |
| octolytics-dimension-user_login | STMicroelectronics |
| octolytics-dimension-repository_id | 43494950 |
| octolytics-dimension-repository_nwo | STMicroelectronics/BlueSTSDK_iOS |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43494950 |
| octolytics-dimension-repository_network_root_nwo | STMicroelectronics/BlueSTSDK_iOS |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f089e689ad324655ac44bf6cdbc04d976105b374 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width