Nezla · Mar 2, 2023 go to post

it doesn't compile, FYI I'm running Ensemble 2014

 

Nezla · Feb 21, 2023 go to post

Thanks Davide, but assigning this new resource to the application or  Zen page which is part of my application, would this prohibit other current users from accessing it?

Thanks

Nezla · Jan 27, 2023 go to post

It's already running and I want to stop or pause the current running one as attached

Nezla · Nov 30, 2022 go to post

Not sure with option to tick on, do you mean Enable option as below ?

Thanks Yaron

Nezla · Nov 7, 2022 go to post

That's the strange thing, checked processes and can't find process ID for it !

Will restart ensemble, thanks guys

Nezla · Oct 13, 2022 go to post

Thanks you very much Danny that really helped.

but not sure what you meant by :"The :80 in your url implies you are using a separate webserver that internally will connect to your Caché/Iris server."

isn't :80 means the port, and if I would like to set a url to only grant access through a specific port where do I configure that?

 Thanks

Nezla · Oct 13, 2022 go to post

Not sure what you mean by call method or how to do that?

Thanks

Nezla · Oct 11, 2022 go to post

this is what I get with Set tSc=Httprequest.Get(, 1)

 
US-SERENITY>d ##class(SX3.Bleproc).GetTempFromAC("L")
GET /api/gap/nodes?filter_rssi=-75&chip=1&mac=CC%3A1B%3AE0%3AE1%3AA6%3A44&active=1&event=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; Cache;)
Host: ac1.mqtt.sx3ac.com
Accept-Encoding: gzip
Accept: application/json
Accept-Language: en_US
Authorization: Bearer a09d8dea562cc5cd99ce7076c8b803cd8a3331d53b63d771e3b5d7fd639c5604

The url seems to be fine?

Nezla · Oct 11, 2022 go to post

if I add Do Httprequest.InsertParam("mac", $zcvt("CC:1B:E0:E1:A6:44", "O", "URI")) I get the following error and I change URI to URL 

and I change URI to URL this error; "gateway's mac is invalid"

is there a way to know the URL call that has been sent in this Get request?

FYI, using this code suppose to get me a live connection to an Open data stream where the then collect data similar to what's in this example using node js  : https://github.com/CassiaNetworks/CassiaSDKGuide/blob/master/node_examp…

so having my code hanging maybe means the live connection is opened but I'm unable to get data ?

thanks

Nezla · Oct 11, 2022 go to post

updated the code as below, but the execution hangs when it comes to line (Set tSc=Httprequest.Get()) and doesn't go any further and not getting any data back.

Token=##class(MSDS.SpaceSense.API).GetAuth()
Set Httprequest=##class(%Net.HttpRequest).%New()
Set Httprequest.Server="ac1.mqtt.sx3ac.com"
Set Httprequest.Timeout=30
Set Httprequest.Https=0
set Httprequest.ContentType="application/json"
Do Httprequest.SetHeader("Accept","application/json")
Do Httprequest.SetHeader("Accept-Language","en_US")
Do Httprequest.SetHeader("Authorization","Bearer "_Token)
Set Httprequest.Location="api/gap/nodes"
    Do Httprequest.InsertParam("filter_rssi", -75)
    Do Httprequest.InsertParam("chip", 1)
    Do Httprequest.InsertParam("mac", "CC:1B:E0:E1:A6:44")
    Do Httprequest.InsertParam("active", 1)
    Do Httprequest.InsertParam("event", 1)

//Set HttpURL="/api/gap/nodes?filter_rssi=-75&chip=1&mac=CC:1B:E0:E1:A6:44&access_token=1aed6596721cb6c23bf2977d0dc2ad85a4e9af5263df10f1f8ac399421642230&active=1&event=1"
 

Set tSc=Httprequest.Get()

^badis="Ok"

BLEConnect=Httprequest.HttpResponse.StatusLine
     
  ^badis("q")=Httprequest.HttpResponse.Data.Read(Httprequest.HttpResponse.Data.Size)

and how do I set a test parameter to 1 and get the request sent, you mean like this

Do Httprequest.InsertParam("test", 1)

and then how do I check the sent request?

Thanks 

Nezla · Oct 10, 2022 go to post

I actually ran it for mac :CC:1B:E0:E1:A6:44

Set HttpURL="/api/gap/nodes?&mac=CC:1B:E0:E1:A6:44&active=1&event=1"
and here where I run it in the browser:

 

So I think the encoding is making the mac unrecognizable !?

Thanks

Nezla · Oct 10, 2022 go to post

Thanks Julius, but when I used Set tSc=Httprequest.Get($zcvt(HttpURL,"O","URL"))

I get "gateway's mac must be specified" error message

Thanks

Nezla · Sep 15, 2022 go to post

sorry missed to copy  Set Id=RSet.GetData(1), but it's my original code, and it's not the problem in this case
   

Nezla · Sep 5, 2022 go to post

Hi Ian,

Journal files are purged daily and I still have 1.4TB of space.

But that's actually what I'm confused about, to what I know New/Changes are written in journal files in the below directory, but what's that Cache.wij journal file which is in my case stored ..\mgr ?

 

Thanks

Nezla · Sep 5, 2022 go to post

Thanks but don't know how to check disk queues or activities, is there a tool or something?

and My understanding is that New or changes are written in Journal files as attached in my screen and first time I heard about the WIJ file?  

Nezla · Sep 5, 2022 go to post

The console file is referring to something called Wanvalue what's that!? 

I'm suspecting that somewhere in the system a Warning Value maybe has been set to 75% and if reached the system starts throwing those warnings?  

Thanks

Nezla · Sep 5, 2022 go to post

I thought that New/Changes are in the journal files as attached below

But you mentioned that new/changes are first written in WIJ file as below?

And yes as you mentioned that error comes and goes, but the file is located in a drive with a enough space, so any ideas on how do I monitor the activities in that disk? 

Thanks Yaron

Nezla · Sep 1, 2022 go to post

Never mind guys, I was wrong the count works

Thanks

Nezla · Aug 18, 2022 go to post

Thank you very much Eduard, but I'm wondering how does 1=1 would improve readability and help in debugging conditions in a query, isn't 1=1 just and extra condition itself ?

Thanks Eduard