Search found 8 matches

by yzheng
17 Oct 2015 00:31
Forum: Discussions in English
Topic: ios zway authentication - help
Replies: 13
Views: 7993

Re: ios zway authentication - help

Seems the serializer doesn't specify content type when there's no content. Why using POST with empty parameters at all? GET should do the same without this error. Thanks pofs. It works now. I thought I should use POST for all the commands sending to the device. During the testing through the web in...
by yzheng
16 Oct 2015 23:37
Forum: Discussions in English
Topic: ios zway authentication - help
Replies: 13
Views: 7993

Re: ios zway authentication - help

Are you not specifying content type for post request? This is my code, I have not specified content type for post request. AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; manager.responseSerializer = [AFJSONResponseSerializer serializer]; manager.requestSerializer....
by yzheng
16 Oct 2015 22:04
Forum: Discussions in English
Topic: ios zway authentication - help
Replies: 13
Views: 7993

Re: ios zway authentication - help

/var/log/z-way-server.log I have checked the log file, this is the stack trace information. What should/can I do? Callback execution error: TypeError: Cannot read property 'toLowerCase' of undefined at ZAutomationAPIWebRequest.ZAutomationWebRequest.handleRequest (automation/WebserverRequestRouter.j...
by yzheng
16 Oct 2015 17:24
Forum: Discussions in English
Topic: ios zway authentication - help
Replies: 13
Views: 7993

Re: ios zway authentication - help

Try to add this: manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/plain"]; Valid response should always be json, so there's no need to do that. And if you look at error.data provided, it says "Uncaught TypeError: Cannot read property 'toLowerCase' of undefined", which...
by yzheng
16 Oct 2015 17:23
Forum: Discussions in English
Topic: ios zway authentication - help
Replies: 13
Views: 7993

Re: ios zway authentication - help

Try to add this: manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/plain"]; And use a latest version v2.1.2-rc2 Hi aivs, I have upgraded to 2.1.2-rc2 and added the codes you suggested. Now I am getting the error below 2015-10-16 15:23:12.520 ZwayDemo[23009:15679489] ge...
by yzheng
14 Oct 2015 17:28
Forum: Discussions in English
Topic: ios zway authentication - help
Replies: 13
Views: 7993

Re: ios zway authentication - help

Hi aivs: I have tried the codes. I am still not able to control the light. What firmware version do I need upgrade to? I got 2.1.1 at the moment. I am using Raspberry Pi 2. Below is the error I got: 2015-10-14 15:24:54.663 ZwayDemo[17053:13748395] getNotifications Error : Error Domain=com.alamofire....
by yzheng
14 Oct 2015 13:41
Forum: Discussions in English
Topic: ios zway authentication - help
Replies: 13
Views: 7993

Re: ios zway authentication - help

Thanks aivs. I will give this codes a try.
by yzheng
09 Oct 2015 23:51
Forum: Discussions in English
Topic: ios zway authentication - help
Replies: 13
Views: 7993

ios zway authentication - help

Hi I am new to zway. Please forgive me if I am asking silly questions. I am doing an ios app to control zwave device. I have used Razberry and it works fine in the browser. Now I am trying to do the same thing from an ios app, how should I handle authentication? I am using AFNetworking for HTTP POST...