signalk / signalk-apple-client Goto Github PK
View Code? Open in Web Editor NEWClient Library For Accessing Signal K Servers From iOS, MacOS X or tvOS Applications
License: Apache License 2.0
Client Library For Accessing Signal K Servers From iOS, MacOS X or tvOS Applications
License: Apache License 2.0
Hi,
thanks for the library but I found a problem.
I just downloaded your project, compiled and run using an iK.
I saw that the [self.signalK registerSKDelegate:self.windAngle forPath:@"environment.wind.angleTrueGround"]; it is not causing the call the windAngle delegate.
I debug and what I found is that in the - (void)callDelegates:(NSDictionary *)delta you have this if (line 941):
if ( (info.path == nil || [path isEqualToString:info.path])
&& (
info.context == nil
|| ([info.context isEqualToString:@"vessels.self"] && [context isEqualToString:self.selfContext])
|| [info.context isEqualToString:context]
) )
but as you can see from these log:
Printing description of self->_selfContext:
urn:mrn:imo:mmsi:15081964
Printing description of context:
vessels.urn:mrn:imo:mmsi:15081964
context it is NOT equal to self.selfContext due to the "vessels" component path in front of it.
I suppose this is a small bug somewhere that you can easily fix, in fact my question is wider, how much this library has been tested ? I'm going to use for a commercial project and founding a bug just as I started is worrying me a little bit. I know that developers (I'm a developer) does not like this question but I have to make it.
Thanks
Claudio
Hi,
is there a way to have the App continue to receive signalK messages even if in background mode ?
Regards
Hi there,
thanks for your great efforts. I have managed to compile and run both obj-c and swift examples but when I point them to an iKommunicate with latest firmware (2018060100) they both give me a pop up dialog saying: Error Connecting: Unable to determine self
Any ideas on how this could be resolved?
Thanks,
Alex
Hi,
in the getWSURL you have:
NSString *urlS = [NSString stringWithFormat:@"%@?stream=delta&subscribe=%@", self.wsEndpoint, subsciption];
but accordingly to the current documentation should be:
NSString *urlS = [NSString stringWithFormat:@"%@?subscribe=%@", self.wsEndpoint, subsciption];
Is it true ? Keep in mind I have not previous experience on SignalK so maybe this is a change in the specs. The problem is that with current iKommunicate if I use your library and I give "none" as subscription value does not work (error 501)
Thanks
Claudio
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.