Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: source/main.cpp
- Revision:
- 1:46333f67c87a
- Parent:
- 0:dbe0ce913311
--- a/source/main.cpp Fri Jun 22 15:05:42 2018 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-/*
- * aconno.de
- * Simple program for aconno ble template demonstration
- *
- * Made by Jurica Resetar @ aconno
- * ResetarJurica@gmail.com
- *
- */
-
-#include "mbed.h"
-#include "aconnoBLE.h"
-#include "ble/BLE.h"
-#include "BLEData.h"
-#include "GapAdvertisingData.h"
-#include "BLEConfig.h"
-#include <list>
-
-advertisingFormat manufacturerSpecificData;
-headerFormat header;
-systemStateFormat systemState;
-timestampFormat timestamp;
-diagnoseFlagsFormat diagnoseFlags;
-
-int (*callback_)(int, int) = NULL; // pointer to a function
-
-int callbackFunction(int param1, int param2)
-{
- // Do some job
- return 1;
-}
-
-void primjer(int(*callback)(int, int))
-{
- callback_(1, 2);
-}
-
-int main()
-{
- //primjer(functionCallback);
-
- callback_ = callbackFunction;
- primjer(callback_);
-
- BLE &ble = BLE::Instance();
- ble.init(bleInitComplete);
- ble.gap().setTxPower(TX_POWER_dB); // Set TX power to TX_POWER
- while (ble.hasInitialized() == false) { }
-
- while(1)
- {}
-}