개정판 297a92d0
license test
Change-Id: I73eb420858da2887faea67b0ab836d97dd14758a
DTI_PID/DTI_PID/License.py | ||
---|---|---|
166 | 166 |
if configs and 1 == len(configs) and 3 == len(configs[0].value.split('.')): |
167 | 167 |
key = '795hi#(7qq5&p#f3ysa#n-449h8g_n95olca)b%t23s7!w%v0m' |
168 | 168 |
"""license type 2""" |
169 |
#api, headers = 'http://devdoftech.co.kr:5100/api/License/Count', \ |
|
169 | 170 |
api, headers = 'http://smartfeedwebapi.azurewebsites.net/api/License/Count', \ |
170 | 171 |
{'Content-Type': 'application/json; charset=utf-8', 'x-auth-token': configs[0].value} |
171 | 172 |
response = requests.post(api, headers=headers) |
... | ... | |
198 | 199 | |
199 | 200 |
@staticmethod |
200 | 201 |
def get_mac_address(remote_server="smartfeedweb.azurewebsites.net") -> str: |
202 |
#def get_mac_address(remote_server="http://devdoftech.co.kr:5100") -> str: |
|
201 | 203 |
""" Return the/a network-facing mac-address of device for this system. """ |
202 | 204 |
import getmac |
203 | 205 |
import socket |
내보내기 Unified diff