Skip to content

Commit

Permalink
Prepare for release 2017_03_27
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Varga committed Mar 27, 2017
1 parent 4047191 commit 6f050d1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
13 changes: 1 addition & 12 deletions build_all/windows/build_client.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ REM target may be set to 64 bit build if a Python x64 detected
set build-config=Release
set wheel=0
set platname=win32
set use-websockets=OFF

goto :args-loop

Expand All @@ -44,7 +43,6 @@ exit /b 1
if "%1" equ "" goto args-done
if "%1" equ "--config" goto arg-build-config
if "%1" equ "--wheel" goto arg-build-wheel
if "%1" equ "--use-websockets" goto arg-use-websockets
if "%1" equ "--platform" goto arg-build-platform
call :usage && exit /b 1

Expand All @@ -58,10 +56,6 @@ goto args-continue
set wheel=1
goto args-continue

:arg-use-websockets
set use-websockets=ON
goto args-continue

:arg-build-platform
shift
if "%1" equ "" call :usage && exit /b 1
Expand All @@ -83,11 +77,7 @@ set cmake-output=cmake_%build-platform%
REM -- C --
cd %build-root%..\..\c\build_all\windows

if %use-websockets% == ON (
call build_client.cmd --platform %build-platform% --buildpython %build-python% --config %build-config% --use-websockets
) else (
call build_client.cmd --platform %build-platform% --buildpython %build-python% --config %build-config%
)
call build_client.cmd --platform %build-platform% --buildpython %build-python% --config %build-config%

if not !ERRORLEVEL!==0 exit /b !ERRORLEVEL!
cd %build-root%
Expand Down Expand Up @@ -201,5 +191,4 @@ echo --config ^<value^> [Debug] build configuration (e.g. Debug, Releas
echo --platform ^<value^> [Win32] build platform (e.g. Win32, x64, ...)
echo --buildpython ^<value^> [2.7] build python extension (e.g. 2.7, 3.4, ...)
echo --no-logging Disable logging
echo --use-websockets Enable websocket support for AMQP and MQTT
goto :eof
2 changes: 1 addition & 1 deletion c
Submodule c updated 122 files
2 changes: 1 addition & 1 deletion device/samples/iothub_client_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def iothub_client_init():
client.set_option("logtrace", 0)
client.set_message_callback(
receive_message_callback, RECEIVE_CONTEXT)
if client.protocol == IoTHubTransportProvider.MQTT:
if client.protocol == IoTHubTransportProvider.MQTT or client.protocol == IoTHubTransportProvider.MQTT_WS:
client.set_device_twin_callback(
device_twin_callback, TWIN_CONTEXT)
client.set_device_method_callback(
Expand Down
2 changes: 1 addition & 1 deletion service/src/iothub_service_client_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define IMPORT_NAME iothub_service_client
#endif

#define IOTHUB_PYTHON_SERVICE_SDK_VERSION "3"
#define IOTHUB_PYTHON_SERVICE_SDK_VERSION "4"
#define VERSION_STRING IOTHUB_SERVICE_CLIENT_VERSION "." IOTHUB_PYTHON_SERVICE_SDK_VERSION

#if PY_MAJOR_VERSION >= 3
Expand Down

0 comments on commit 6f050d1

Please sign in to comment.