GithubHelp home page GithubHelp logo

signalk / signalk-apple-client Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 229 KB

Client Library For Accessing Signal K Servers From iOS, MacOS X or tvOS Applications

License: Apache License 2.0

Ruby 1.39% Objective-C 93.92% Swift 4.69%

signalk-apple-client's Introduction

Signal K

signal-k-logo-tagline

Signal K is a modern and open data format for marine use. Built on standard web technologies including JSON, WebSockets and HTTP, Signal K provides a method for sharing information in a way that is friendly to WiFi, cellphones, tablets and the Internet. A format available to everyone, where anyone can contribute, Signal K is the first truly open data format for the marine industry and is set to revolutionize how we consume and interact with data on boats.

https://signalk.org

signalk-apple-client's People

Contributors

sbender9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

signalk-apple-client's Issues

Problem with context in "- (void)callDelegates:(NSDictionary *)delta"

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

getWSURL

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

Examples Provided

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

Background work

Hi,

is there a way to have the App continue to receive signalK messages even if in background mode ?

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.