Comments (2)
아래 코드는 테스트를 위해 사용한 AE 생성 시 ACP를 적용하는 코드입니다.
하지만 ACP가 올바르게 적용되지 않는 것을 확인할 수 있습니다.
============================================
def createApplicationEntity(AEname, serverURL, role):
header = {
"Accept":"application/json",
"X-M2M-RI":"3408",
"X-M2M-Origin":role,
"Content-Type":"application/json;ty=2"
}
body = {
"m2m:ae":{
"rn":AEname,
"api":"ID_api_raleeshinjo",
"lbl":["key1","key2"],
"rr": True,
"poa":["MQTT|"],
"acpi":["Mobius/"+acpi] #acp를 추가하기 위한 속성
}
}
res = requests.post(serverURL+"/Mobius", headers=header, json=body)
print(res.json())
============================================
확인해주셔서 감사합니다.
from mobius.
아래 코드는 테스트를 위해 사용한 AE 삭제 시 role값을 주는 코드입니다.
하지만 ACP가 올바르게 적용되지 않아 삭제되지 않는 것을 확인할 수 있습니다.
============================================
def removeApplicationEntity(serverURL, AEname, role):
ri = getApplicationEntityRI(serverURL, AEname, role)
header = {
"Accept":"application/json",
"X-M2M-RI": ri_value, #이때 AE 자체의 ri, INCSE 자체의 ri 모두 사용해보았지만 삭제되지 않았음
"X-M2M-Origin": role,
}
res = requests.delete(serverURL+"/Mobius/"+AEname, headers=header, data="")
res = res.json()
print(res)
============================================
확인해주셔서 감사합니다.
from mobius.
Related Issues (20)
- Garbage collection is not exposed HOT 1
- Maximum Number of Instance bug HOT 3
- How to connect Mobius and SCADA Application - UltimateAccess CimonD
- Testing actuators
- Subscription/Notifications only work when created via Mobius HOT 13
- "[db.connect] No connection" message occured after running "node mobius.js " HOT 1
- Maximum Instance Age bug
- Flex Container changes
- RETRIEVE with rcn = 4
- oneM2M browser does not work as it's supposed to do.
- "m2m:dbg": "ACCESS DENIED" HOT 1
- Error on CSR response handling
- [Mobius-00049] Add Log Management
- MobiusYTSampleApp 에서 궁금한 점이 있습니다.
- Bug with PUT requests on grp HOT 1
- subscribe 삭제에 관해 궁금한 점이 있습니다.
- This XML file does not appear to have any style information associated with it. The document tree is shown below.
- 설명에 있는 admin ui 소스는 무엇을 가르키는 걸까요?
- RemoteCSE httpForwarding 요청 시 ERROR
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobius.